suppress favicon and move errant style from HEAD to css doc
This commit is contained in:
@@ -24,10 +24,10 @@ ajax '/ajax/content/search/:thing' => sub {
|
||||
|
||||
# devices carrying vlan xxx
|
||||
ajax '/ajax/content/search/vlan' => sub {
|
||||
my $q = param('q');
|
||||
return unless $q and $q =~ m/^\d+$/;
|
||||
my $vlan = param('q');
|
||||
return unless $vlan and $vlan =~ m/^\d+$/;
|
||||
|
||||
my $set = schema('netdisco')->resultset('Device')->carrying_vlan($q);
|
||||
my $set = schema('netdisco')->resultset('Device')->carrying_vlan($vlan);
|
||||
return unless $set->count;
|
||||
|
||||
content_type('text/html');
|
||||
@@ -42,7 +42,7 @@ ajax '/ajax/content/search/vlan' => sub {
|
||||
],
|
||||
hyperlink => sub {
|
||||
my $row = shift;
|
||||
return '/device?q=' . $row->ip;
|
||||
return '/device?q='. $row->ip .'&vlan='. $vlan;
|
||||
},
|
||||
}, { layout => undef };
|
||||
};
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
/* for the fixed navbar */
|
||||
body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.nd_loginalert {
|
||||
margin-top: -40px;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=[% settings.charset %]" />
|
||||
<title>Netdisco</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=[% settings.charset %]" />
|
||||
<link rel="shortcut icon" href="#" />
|
||||
<title>Netdisco</title>
|
||||
|
||||
<!-- HTML5 shim, for IE6-8 support of HTML elements -->
|
||||
<!--[if lt IE 9]>
|
||||
@@ -24,14 +25,6 @@
|
||||
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
|
||||
<!-- for the fixed navbar -->
|
||||
<style type="text/css">
|
||||
body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user