Navigation menu: Change order, mark active section (ugly way, need improvements)
authorroot <root@Portable>
Thu, 6 Mar 2014 16:47:53 +0000 (17:47 +0100)
committerroot <root@Portable>
Thu, 6 Mar 2014 16:47:53 +0000 (17:47 +0100)
portal/static/css/onelab.css
portal/static/js/institution.js
portal/templates/account-view.html
portal/templates/supportview.html
portal/templates/validate_pending.html

index 750af81..77e23ee 100644 (file)
@@ -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;
index dc44870..1ddb3e3 100644 (file)
@@ -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');
index 228ee55..f435500 100644 (file)
 
 <script>
     $(document).ready(function() {
+               $('li#nav-account').addClass("active");
+
         $('a.account-tab').click(function() {
             $('ul.nav-tabs li').removeClass('active');
             $(this).parent().addClass('active');
index 3b4c2ef..d35d226 100644 (file)
@@ -61,6 +61,7 @@
 
 <script>
     $(document).ready(function() {
+               $('li#nav-support').addClass("active");
         $('button#ticketbtn').click(function() {
             window.location="/portal/contact/";
         });
index 447c931..6012720 100644 (file)
@@ -2,6 +2,9 @@
 
 {% block head %}
 <script type="text/javascript">
+       $(document).ready(function() {
+               $("li#nav-request").addClass("active");
+       });
        function on_click_event() {
                var ids = []; 
                $('.portal__validate__checkbox').each(function(i, el) {