[LNT] r209021 - Activate navbar items upon hovering the mouse

Yi Kong Yi.Kong at arm.com
Fri May 16 13:54:05 PDT 2014


Author: kongyi
Date: Fri May 16 15:54:05 2014
New Revision: 209021

URL: http://llvm.org/viewvc/llvm-project?rev=209021&view=rev
Log:
Activate navbar items upon hovering the mouse

Modified:
    lnt/trunk/lnt/server/ui/templates/layout.html

Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=209021&r1=209020&r2=209021&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Fri May 16 15:54:05 2014
@@ -56,6 +56,11 @@
         padding-right: 20px;
       }
     }
+
+    /* Activate nav bar items upon hovering the mouse, rather than clicking the item */
+    ul.nav li.dropdown:hover > ul.dropdown-menu {
+      display: block;
+    }
   </style>
 
   <link rel="icon" type="image/png" href="{{ url_for('.static', filename='favicon.ico') }}">
@@ -88,7 +93,7 @@
           <a class="brand" href="{{url_for('index')}}">{{old_config.name}}</a>
           <ul class="nav">
             <li class="dropdown">
-              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Suite<b class="caret"></b></a>
+              <a href="#" class="dropdown-toggle">Suite <b class="caret"></b></a>
               <ul class="dropdown-menu">
                 {% for name in request.get_db().testsuite %}
                 <li><a href="{{db_url_for('v4_recent_activity', testsuite_name=name)}}">{{name}}</a></li>
@@ -101,7 +106,7 @@
         {% if g.testsuite_name is defined %}
         <ul class="nav">
           <li class="dropdown">
-            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Go to<b class="caret"></b></a>
+            <a href="#" class="dropdown-toggle">Go to <b class="caret"></b></a>
             <ul class="dropdown-menu">
               <li><a href="{{ v4_url_for('v4_recent_activity') }}">Recent Activity</a></li>
               <li><a href="{{ v4_url_for('v4_global_status') }}">Global Status</a></li>
@@ -117,7 +122,7 @@
         {# Database Selector #}
         <ul class="nav pull-right">
           <li class="dropdown">
-            <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="dbselect" >Database <b class="caret"></b></a>
+            <a href="#" class="dropdown-toggle" id="dbselect" >Database <b class="caret"></b></a>
             <ul class="dropdown-menu">
               {% for name in old_config.databases.keys()|sort %}
                 <li><a href="{{ url_for('select_db', db=name, path=request.path) }}">





More information about the llvm-commits mailing list