sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1829828 - /sis/site/trunk/templates/skeleton.html
Date Mon, 23 Apr 2018 07:49:47 GMT
Author: desruisseaux
Date: Mon Apr 23 07:49:47 2018
New Revision: 1829828

URL: http://svn.apache.org/viewvc?rev=1829828&view=rev
Log:
Add the right menu active for the sidebar on the left.
Patch by Bruno P. Kinoshita on https://issues.apache.org/jira/browse/SIS-114

Modified:
    sis/site/trunk/templates/skeleton.html

Modified: sis/site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/sis/site/trunk/templates/skeleton.html?rev=1829828&r1=1829827&r2=1829828&view=diff
==============================================================================
--- sis/site/trunk/templates/skeleton.html (original)
+++ sis/site/trunk/templates/skeleton.html Mon Apr 23 07:49:47 2018
@@ -65,7 +65,7 @@
           </div>
           <div class="well sidebar-nav">
             <ul class="nav nav-list">
-              <li class="active"><a href="index.html">Home</a></li>
+              <li><a href="index.html">Home</a></li>
               <li><a href="http://www.apache.org/licenses/">License</a></li>
               <li><a href="mail-lists.html">Mailing Lists</a></li>
               <li><a href="team-list.html">Project Team</a></li>
@@ -108,5 +108,14 @@
   <script src="js/jquery-1.9.1.min.js"></script>
   <script src="js/bootstrap.min.js"></script>
 
+  <!-- for marking links as active in the navbar-menu -->
+  <script type="text/javascript">
+    var pathname = this.location.pathname;
+    pathname = pathname.substring(1, pathname.length);
+    var link = $('a[href="' + pathname + '"]');
+    if (link != undefined)
+      link.parents('li,ul').addClass('active');
+  </script>
+
 </body>
 </html>



Mime
View raw message