diff --git a/Netdisco/bin/netdisco-web.pl b/Netdisco/bin/netdisco-web.pl index 114ae861..68be4634 100755 --- a/Netdisco/bin/netdisco-web.pl +++ b/Netdisco/bin/netdisco-web.pl @@ -1,4 +1,9 @@ #!/usr/bin/env perl + +# use lib '/root/perl-profiles/netdisco-web/lib/perl5'; +use local::lib '/srv/www/vhosts/netdisco.ecmwf.int/perl-profiles/netdisco-web'; +use lib '/srv/www/vhosts/netdisco.ecmwf.int/Netdisco/lib'; + use Dancer; use Netdisco::Web; dance; diff --git a/Netdisco/public/css/netdisco.css b/Netdisco/public/css/netdisco.css index e0f98a54..5cec14ae 100644 --- a/Netdisco/public/css/netdisco.css +++ b/Netdisco/public/css/netdisco.css @@ -35,20 +35,6 @@ form .clearfix.success input { background-color: #A9DBA9; } -/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -/* right hand side device label */ - -.device_label_right { - float: right !important; - margin-bottom: -7px !important; - display: none; -} - -/* take a block element and force it inline */ -.inline { - display: inline !important; -} - /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* results table links */ @@ -200,13 +186,28 @@ h3.device_label { color: #660033; } +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ +/* right hand side device label */ + +.device_label_right { + float: right !important; + margin-bottom: -7px !important; + display: none; +} + +/* take a block element and force it inline */ +.inline { + display: inline !important; +} + /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* sidebar collapser */ /* for placing the sidebar toggle icons */ #sidebar_toggle_img_in { - margin-top: -10px; - margin-left: 164px; + float: right; + margin-top: -7px; + margin-right: -16px; cursor: pointer; } @@ -214,7 +215,7 @@ h3.device_label { #sidebar_toggle_img_out { position: fixed; top: 60px; - left: 4px; + right: 7px; z-index: 1; cursor: pointer; display: none; @@ -224,19 +225,25 @@ h3.device_label { /* sidebar placement and sizing */ /* make the sidebar fixed on the screen */ -.sidebar { - position: fixed !important; +.container-fluid > .sidebar { + position: fixed; margin-top: 50px; -} - -/* make the sidebar less wide */ -.well { - margin-right: 15px; + right: 20px; + width: 200px; + left: auto; } /* make the content start more to the left now the sidebar is narrower */ -.nd_content { - margin-left: 225px !important; +.container-fluid > .content { + margin-right: 220px; + margin-left: 0px; +} + +/* nudge content in the sidebar closer to the left */ +.nd_sidesearchform { + padding-left: 0px; + margin-top: -7px; + margin-bottom: 0px; } /* nudge content closer to the header labels in the sidebar */ @@ -244,10 +251,4 @@ h3.device_label { padding-top: 4px !important; } -/* nudge content in the sidebar closer to the left */ -.nd_sidesearchform { - padding-left: 0px; - margin-bottom: 0px; -} - /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ diff --git a/Netdisco/public/images/diagona_settings.png b/Netdisco/public/images/diagona_settings.png new file mode 100644 index 00000000..6587d5bc Binary files /dev/null and b/Netdisco/public/images/diagona_settings.png differ diff --git a/Netdisco/public/images/dusseldorf_settings.png b/Netdisco/public/images/dusseldorf_settings.png new file mode 100644 index 00000000..92692173 Binary files /dev/null and b/Netdisco/public/images/dusseldorf_settings.png differ diff --git a/Netdisco/public/javascripts/netdisco.js b/Netdisco/public/javascripts/netdisco.js index 25cc2a5d..7ae94887 100644 --- a/Netdisco/public/javascripts/netdisco.js +++ b/Netdisco/public/javascripts/netdisco.js @@ -120,7 +120,7 @@ $(document).ready(function() { $('.sidebar').toggle( function() { $('#sidebar_toggle_img_out').toggle(); - $('.nd_content').animate({'margin-left': '5px !important'}, 100); + $('.content').animate({'margin-right': '10px !important'}, 100); $('.device_label_right').toggle(); } ); @@ -129,7 +129,7 @@ $(document).ready(function() { $('#sidebar_toggle_img_out').click( function() { $('#sidebar_toggle_img_out').toggle(); - $('.nd_content').animate({'margin-left': '225px !important'}, 200, + $('.content').animate({'margin-right': '220px !important'}, 200, function() { $('.device_label_right').toggle(); $('.sidebar').toggle(200); diff --git a/Netdisco/views/device.tt b/Netdisco/views/device.tt index a072abe7..ac78aad8 100644 --- a/Netdisco/views/device.tt +++ b/Netdisco/views/device.tt @@ -1,11 +1,12 @@ + src="[% uri_base %]/images/dusseldorf_settings.png" + rel="twipsy" data-placement="left" data-offset="5" title="Show Options"/>
-
+
    [% FOREACH tab IN vars.tabs %] [% tab.label %] diff --git a/Netdisco/views/search.tt b/Netdisco/views/search.tt index 1c092c4f..17183a31 100644 --- a/Netdisco/views/search.tt +++ b/Netdisco/views/search.tt @@ -1,24 +1,23 @@ + src="[% uri_base %]/images/dusseldorf_settings.png" + rel="twipsy" data-placement="left" data-offset="5" title="Show Search Options"/>