Merge branch 'og-agg' of ssh://olly_g@git.code.sf.net/p/netdisco/netdisco-ng into og-agg
This commit is contained in:
		| @@ -158,9 +158,14 @@ div.content > div.tab-content table.nd_floatinghead thead { | |||||||
| /* nudge cell content to the right when port_control controls are enabled */ | /* nudge cell content to the right when port_control controls are enabled */ | ||||||
| .nd_editable-cell > .nd_this-port-only { | .nd_editable-cell > .nd_this-port-only { | ||||||
|   margin-left: 18px; |   margin-left: 18px; | ||||||
|  |   margin-right: 18px; | ||||||
| } | } | ||||||
|  | .nd_editable-cell > .nd_port-only-first { | ||||||
|  |   margin-left: 9px; | ||||||
|  | } | ||||||
|  |  | ||||||
| .nd_editable-cell > .nd_editable-cell-content { | .nd_editable-cell > .nd_editable-cell-content { | ||||||
|   margin-left: 18px; |   margin-right: 18px; | ||||||
| } | } | ||||||
| .table .nd_nudge-for-icon { | .table .nd_nudge-for-icon { | ||||||
|   padding-left: 25px; |   padding-left: 25px; | ||||||
| @@ -177,6 +182,10 @@ div.content > div.tab-content table.nd_floatinghead thead { | |||||||
|   text-align: center; |   text-align: center; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | td.nd_devport-icon i { | ||||||
|  |   line-height: 18px; | ||||||
|  | } | ||||||
|  |  | ||||||
| /* undo nd_center-cell when in a modial dialog (which lives in table cell) */ | /* undo nd_center-cell when in a modial dialog (which lives in table cell) */ | ||||||
| .table .nd_center-cell .modal-body { | .table .nd_center-cell .modal-body { | ||||||
|   text-align: left; |   text-align: left; | ||||||
| @@ -261,7 +270,7 @@ td > form.nd_inline-form { | |||||||
|   cursor: pointer; |   cursor: pointer; | ||||||
|   color: black; |   color: black; | ||||||
|   float: left; |   float: left; | ||||||
|   display: none; |   visibility: hidden; | ||||||
|   margin-top: 3px; |   margin-top: 3px; | ||||||
| } | } | ||||||
| .nd_log-icon:hover, .nd_log-icon:focus { | .nd_log-icon:hover, .nd_log-icon:focus { | ||||||
|   | |||||||
| @@ -92,14 +92,16 @@ $(document).ready(function() { | |||||||
|  |  | ||||||
|   // toggle visibility of port up/down and edit controls |   // toggle visibility of port up/down and edit controls | ||||||
|   $('.tab-content').on('mouseenter', '.nd_editable-cell', function() { |   $('.tab-content').on('mouseenter', '.nd_editable-cell', function() { | ||||||
|     $(this).children('.nd_hand-icon,.nd_log-icon').show(); |     $(this).children('.nd_hand-icon').show(); | ||||||
|  |     $(this).children('.nd_log-icon').css('visibility', 'visible'); | ||||||
|     if (! $(this).is(':focus')) { |     if (! $(this).is(':focus')) { | ||||||
|       $(this).children('.nd_edit-icon').show(); // ports |       $(this).children('.nd_edit-icon').show(); // ports | ||||||
|       $(this).siblings('td').find('.nd_device-details-edit').show(); // details |       $(this).siblings('td').find('.nd_device-details-edit').show(); // details | ||||||
|     } |     } | ||||||
|   }); |   }); | ||||||
|   $('.tab-content').on('mouseleave', '.nd_editable-cell', function() { |   $('.tab-content').on('mouseleave', '.nd_editable-cell', function() { | ||||||
|     $(this).children('.nd_hand-icon,.nd_log-icon').hide(); |     $(this).children('.nd_hand-icon').hide(); | ||||||
|  |     $(this).children('.nd_log-icon').css('visibility', 'hidden'); | ||||||
|     if (! $(this).is(':focus')) { |     if (! $(this).is(':focus')) { | ||||||
|       $(this).children('.nd_edit-icon').hide(); // ports |       $(this).children('.nd_edit-icon').hide(); // ports | ||||||
|       $(this).siblings('td').find('.nd_device-details-edit').hide(); // details |       $(this).siblings('td').find('.nd_device-details-edit').hide(); // details | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ | |||||||
|   </tbody> |   </tbody> | ||||||
|     [% FOREACH row IN results %] |     [% FOREACH row IN results %] | ||||||
|     <tr> |     <tr> | ||||||
|       <td class="nd_center-cell"> |       <td class="nd_center-cell nd_devport-icon"> | ||||||
|         [% IF row.up_admin != 'up' %] |         [% IF row.up_admin != 'up' %] | ||||||
|         <i class="icon-remove"></i> |         <i class="icon-remove"></i> | ||||||
|         [% ELSIF row.stp == 'blocking' %] |         [% ELSIF row.stp == 'blocking' %] | ||||||
| @@ -29,6 +29,15 @@ | |||||||
|         [% ELSE %] |         [% ELSE %] | ||||||
|         <i class="icon-angle-up text-success"></i> |         <i class="icon-angle-up text-success"></i> | ||||||
|         [% END %] |         [% END %] | ||||||
|  |         [% IF row.slave_of %]<br/> | ||||||
|  |           [% IF row.get_column('agg_master_up_admin') != 'up' %] | ||||||
|  |             <small><i class="icon-group muted"></i></small> | ||||||
|  |           [% ELSIF row.get_column('agg_master_up') == 'up' %] | ||||||
|  |             <small><i class="icon-group text-success"></i></small> | ||||||
|  |           [% ELSE %] | ||||||
|  |             <small><i class="icon-group text-error"></i></small> | ||||||
|  |           [% END %] | ||||||
|  |         [% END %] | ||||||
|       </td> |       </td> | ||||||
|  |  | ||||||
|       [% FOREACH config IN settings._extra_device_port_cols %] |       [% FOREACH config IN settings._extra_device_port_cols %] | ||||||
| @@ -66,20 +75,13 @@ | |||||||
|       [% ELSE %] |       [% ELSE %] | ||||||
|       <td nowrap> |       <td nowrap> | ||||||
|       [% END %] |       [% END %] | ||||||
|         [% IF row.is_master %] |         <a class="nd_this-port-only nd_port-only-first" href="[% uri_for('/device', | ||||||
|           <small><i class="icon-group muted"></i></small> |  | ||||||
|         [% END %] |  | ||||||
|         <a class="nd_this-port-only" href="[% uri_for('/device', |  | ||||||
|             self_options) %]&q=[% params.q | uri %]&f=[% row.port | uri %]&prefer=port"> |             self_options) %]&q=[% params.q | uri %]&f=[% row.port | uri %]&prefer=port"> | ||||||
|  |           [% IF row.is_master %] | ||||||
|  |             <small><i class="icon-group muted"></i></small>  | ||||||
|  |           [% END %] | ||||||
|         [% row.port | html_entity %]</a> |         [% row.port | html_entity %]</a> | ||||||
|         [% IF row.slave_of %]<br/> |         [% IF row.slave_of %]<br/> | ||||||
|           [% IF row.get_column('agg_master_up_admin') != 'up' %] |  | ||||||
|             <small><i class="icon-group muted"></i></small> |  | ||||||
|           [% ELSIF row.get_column('agg_master_up') == 'up' %] |  | ||||||
|             <small><i class="icon-group text-success"></i></small> |  | ||||||
|           [% ELSE %] |  | ||||||
|             <small><i class="icon-group text-error"></i></small> |  | ||||||
|           [% END %] |  | ||||||
|           <a class="nd_this-port-only" href="[% uri_for('/device', |           <a class="nd_this-port-only" href="[% uri_for('/device', | ||||||
|               self_options) %]&q=[% params.q | uri %]&f=[% row.slave_of | uri %]&prefer=port"> |               self_options) %]&q=[% params.q | uri %]&f=[% row.slave_of | uri %]&prefer=port"> | ||||||
|           [% row.slave_of | html_entity %]</a> |           [% row.slave_of | html_entity %]</a> | ||||||
|   | |||||||
| @@ -43,7 +43,7 @@ | |||||||
|                   <li><i class="icon-li icon-phone"></i>  IP Phone</li> |                   <li><i class="icon-li icon-phone"></i>  IP Phone</li> | ||||||
|                   <li><i class="icon-li icon-signal"></i>  Wireless Client</li> |                   <li><i class="icon-li icon-signal"></i>  Wireless Client</li> | ||||||
|                   <li><i class="icon-li icon-book"></i>  Archived Data</li> |                   <li><i class="icon-li icon-book"></i>  Archived Data</li> | ||||||
|                   <li><i class="icon-li icon-group"></i>  Aggregate Master</li> |                   <li><i class="icon-li icon-group"></i>  Link Aggregate</li> | ||||||
|                   [% IF user_has_role('port_control') %] |                   [% IF user_has_role('port_control') %] | ||||||
|                   <li><i class="icon-li icon-refresh icon-spin"></i>  Click "Update View"</li> |                   <li><i class="icon-li icon-refresh icon-spin"></i>  Click "Update View"</li> | ||||||
|                   [% END %] |                   [% END %] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user