User icon color indicates port_control/admin ability
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
* Port filter in device port display is now highlighted green
|
* Port filter in device port display is now highlighted green
|
||||||
* Navbar search is fuzzier
|
* Navbar search is fuzzier
|
||||||
* Phone node icon is a little phone handset
|
* Phone node icon is a little phone handset
|
||||||
|
* User icon color indicates port_control/admin ability
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use Dancer::Plugin::DBIC;
|
|||||||
hook 'before' => sub {
|
hook 'before' => sub {
|
||||||
# list of port detail columns
|
# list of port detail columns
|
||||||
var('port_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_port', label => 'Port', default => 'on' },
|
||||||
{ name => 'c_descr', label => 'Description', default => '' },
|
{ name => 'c_descr', label => 'Description', default => '' },
|
||||||
{ name => 'c_type', label => 'Type', default => '' },
|
{ name => 'c_type', label => 'Type', default => '' },
|
||||||
|
|||||||
@@ -27,6 +27,14 @@ body {
|
|||||||
width: 100%;
|
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 */
|
/* various styles to adjust the hero box used for homepage + login */
|
||||||
|
|
||||||
|
|||||||
@@ -102,8 +102,10 @@
|
|||||||
<li class="nd_navbartext">Logged in as </li>
|
<li class="nd_navbartext">Logged in as </li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||||
[% IF vars.user.port_control %]
|
[% IF vars.user.admin %]
|
||||||
<i class="icon-user-md"></i>
|
<i class="icon-user nd_user_admin"></i>
|
||||||
|
[% ELSIF vars.user.port_control %]
|
||||||
|
<i class="icon-user nd_user_port_control"></i>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<i class="icon-user"></i>
|
<i class="icon-user"></i>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|||||||
Reference in New Issue
Block a user