User icon color indicates port_control/admin ability

This commit is contained in:
Oliver Gorwits
2013-05-05 13:02:45 +01:00
parent 2cdcb9db7e
commit d9a6a1882a
4 changed files with 14 additions and 3 deletions

View File

@@ -14,6 +14,7 @@
* Port filter in device port display is now highlighted green
* Navbar search is fuzzier
* Phone node icon is a little phone handset
* User icon color indicates port_control/admin ability
[BUG FIXES]

View File

@@ -7,7 +7,7 @@ use Dancer::Plugin::DBIC;
hook 'before' => sub {
# list of port detail columns
var('port_columns' => [
{ name => 'c_admin', label => 'Admin Controls', default => '' },
{ name => 'c_admin', label => 'Port Controls', default => '' },
{ name => 'c_port', label => 'Port', default => 'on' },
{ name => 'c_descr', label => 'Description', default => '' },
{ name => 'c_type', label => 'Type', default => '' },

View File

@@ -27,6 +27,14 @@ body {
width: 100%;
}
.nd_user_port_control {
color: rgba(255,255,0,0.8) !important;
}
.nd_user_admin {
color: rgba(255,0,0,0.8) !important;
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* various styles to adjust the hero box used for homepage + login */

View File

@@ -102,8 +102,10 @@
<li class="nd_navbartext">Logged in as &nbsp;</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
[% IF vars.user.port_control %]
<i class="icon-user-md"></i>
[% IF vars.user.admin %]
<i class="icon-user nd_user_admin"></i>
[% ELSIF vars.user.port_control %]
<i class="icon-user nd_user_port_control"></i>
[% ELSE %]
<i class="icon-user"></i>
[% END %]