From: root Date: Thu, 6 Mar 2014 16:47:53 +0000 (+0100) Subject: Navigation menu: Change order, mark active section (ugly way, need improvements) X-Git-Tag: myslice-1.1~218 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=ec16a91c0084b0796a826ca64609955610816846 Navigation menu: Change order, mark active section (ugly way, need improvements) --- diff --git a/portal/static/css/onelab.css b/portal/static/css/onelab.css index 750af817..77e23ee2 100644 --- a/portal/static/css/onelab.css +++ b/portal/static/css/onelab.css @@ -130,6 +130,12 @@ div#navigation li:last-child { margin-right:0; } +div#navigation li.active { + padding:5px; + background-color:gray; + color:#FF0000; +} + /* HOME DASHBOARD */ div#home-dashboard { color:black; diff --git a/portal/static/js/institution.js b/portal/static/js/institution.js index dc448702..1ddb3e3f 100644 --- a/portal/static/js/institution.js +++ b/portal/static/js/institution.js @@ -1,4 +1,6 @@ $(document).ready(function() { + $('li#nav-institution').addClass("active"); + $('a.home-tab').click(function() { $('ul.nav-tabs li').removeClass('active'); $(this).parent().addClass('active'); diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 228ee558..f435500c 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -307,6 +307,8 @@