display device name on RHS when sidebar hidden
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
src="[% uri_base %]/images/application_side_contract.png"
|
||||
rel="twipsy" data-placement="below" data-offset="5" title="Hide Sidebar"/>
|
||||
<h3 class="device_label">[% d.ip %]</h3>
|
||||
[% IF d.dns %]
|
||||
<p class="device_label">[% d.dns.remove(settings.domain_suffix) %]</p>
|
||||
[% END %]
|
||||
<div class="tab-content">
|
||||
[% FOREACH tab IN vars.tabs %]
|
||||
<div id="[% tab.id %]_search" class="tab-pane [% 'active' IF params.tab == tab.id %]">
|
||||
@@ -23,6 +25,12 @@
|
||||
[% FOREACH tab IN vars.tabs %]
|
||||
<li[% ' class="active"' IF params.tab == tab.id %]><a href="#[% tab.id %]_pane">[% tab.label %]</a></li>
|
||||
[% END %]
|
||||
<li class="device_label_right">
|
||||
<h3 class="inline device_label">[% d.ip %]</h3>
|
||||
[% IF d.dns %]
|
||||
<h5 class="inline device_label">([% d.dns.remove(settings.domain_suffix) %])</h5>
|
||||
[% END %]
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
[% FOREACH tab IN vars.tabs %]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
function() {
|
||||
$('#sidebar_toggle_img_out').toggle();
|
||||
$('.nd_content').animate({'margin-left': '5px !important'}, 100);
|
||||
$('.device_label_right').toggle();
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -14,6 +15,7 @@
|
||||
$('#sidebar_toggle_img_out').toggle();
|
||||
$('.nd_content').animate({'margin-left': '225px !important'}, 200,
|
||||
function() {
|
||||
$('.device_label_right').toggle();
|
||||
$('.sidebar').toggle(200);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user