suppress favicon and move errant style from HEAD to css doc

This commit is contained in:
Oliver Gorwits
2012-01-07 19:49:49 +00:00
parent e7860b2aea
commit 54d6422894
3 changed files with 12 additions and 14 deletions

View File

@@ -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 };
};

View File

@@ -1,3 +1,8 @@
/* for the fixed navbar */
body {
padding-top: 50px;
}
.nd_loginalert {
margin-top: -40px;
}

View File

@@ -3,6 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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 -->
@@ -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>