]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6041 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Mon, 2 Feb 2015 08:55:09 +0000 (09:55 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 2 Feb 2015 08:55:09 +0000 (09:55 +0100)
server/sonar-web/src/main/hbs/nav/nav-global-navbar.hbs
server/sonar-web/src/main/hbs/nav/nav-search.hbs
server/sonar-web/src/main/less/navbar.less
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 19e3e1119a89f8571bfff11928d7c81d82364582..8692b0433be89c95a6b0e9dc498a7b05817b7ec6 100644 (file)
     <li {{#isActiveLink '/quality_gates'}}class="active"{{/isActiveLink}}>
       <a href="{{link '/quality_gates'}}">{{t 'quality_gates.page'}}</a>
     </li>
+    {{#if isUserAdmin}}
+      <li {{#isActiveLink '/settings'}}class="active"{{/isActiveLink}}>
+        <a class="navbar-admin-link" href="{{link '/settings'}}">{{t 'layout.settings'}}</a>
+      </li>
+    {{/if}}
     <li class="dropdown">
       <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'more'}}&nbsp;<i class="icon-dropdown"></i></a>
       <ul class="dropdown-menu">
         <li>
-          <a href="{{link '/comparison'}}">{{t 'comparison.page'}}</a>
+          <a href="{{link '/comparison'}}">{{t 'comparison_global.page'}}</a>
         </li>
         <li>
           <a href="{{link '/dependencies'}}">{{t 'dependencies.page'}}</a>
             <a href="{{link url}}">{{name}}</a>
           </li>
         {{/each}}
-        {{#if isUserAdmin}}
-          <li class="divider"></li>
-          <li>
-            <a href="{{link '/settings'}}">{{t 'layout.settings'}}</a>
-          </li>
-        {{/if}}
       </ul>
     </li>
   </ul>
index ed298aef3141fb260a6a2d332304d52d00fdf684..c566d3832d94d3ee7408d60ae47729396bdf2adf 100644 (file)
@@ -1,6 +1,8 @@
 <i class="navbar-search-icon icon-search"></i>
 
 <input class="navbar-search-input js-search-input" type="search" name="q" placeholder="{{t 'search_verb'}}"
-       autocomplete="off">
+       maxlength="30" autocomplete="off">
 
 <div class="js-search-results"></div>
+
+<div class="subtitle navbar-search-subtitle">{{t 'search.shortcut'}}</div>
index 193614960614acf07429b3472d09031f049ab703..87234f8016156f3aa5dd25a8272d2251eab9a00c 100644 (file)
   text-align: right;
 }
 
+.navbar-search-subtitle {
+  position: absolute;
+  top: 5px;
+  right: 40px;
+}
+
 
 .navbar-global {
   background-color: @navbarGlobalBackground;
   .navbar-nav > li > a:focus,
   .navbar-nav > .active > a,
   .navbar-nav > .dropdown.open > a {
-    background-color: @darkBlue;
+    background-color: @blue;
   }
 
   .navbar-search-dropdown {
     background-color: @blue !important;
   }
+
+  .navbar-admin-link:hover,
+  .navbar-admin-link:focus,
+  .active > .navbar-admin-link {
+    background-color: @orange !important;
+  }
 }
 
 
   color: @secondFontColor;
   font-size: @smallFontSize;
 }
-
-
-.navbar-settings {
-  .horizontal-gradient(@navbarGlobalBackground, #7b1b1b);
-}
index 410557c39c39d4767dbec470d66d7613e9722bd3..fb4abbbb25deaa1bfa85525fa43dbe516f6d147a 100644 (file)
@@ -524,6 +524,7 @@ issues_drilldown.page=Issues Drilldown
 source.page=Source
 timemachine.page=Time Machine
 comparison.page=Compare
+comparison_global.page=Compare Projects
 design.page=Design
 libraries.page=Libraries
 
@@ -1027,6 +1028,7 @@ dashboard.TimeMachine.name=Time Machine
 #------------------------------------------------------------------------------
 search.results=results
 search.duration=({0} seconds)
+search.shortcut=Press S to quickly open search bar
 
 
 #------------------------------------------------------------------------------