]> source.dussan.org Git - sonarqube.git/commitdiff
Move the link "Administration" to the left nav bar
authorSimon Brandhof <simon.brandhof@gmail.com>
Sun, 9 Dec 2012 19:40:54 +0000 (20:40 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Sun, 9 Dec 2012 19:40:54 +0000 (20:40 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb

index 0095751ed3586469aea4cb72eb1d011b2e77db99..60a82a02e6e376abe16a77c7082eb7b97c8f001c 100644 (file)
         <li>
           <a href="<%= ApplicationController.root_context -%>/reviews/index"><%= message('reviews.page') -%></a>
         </li>
+        <% if is_admin? %>
+          <li>
+            <a href="<%= ApplicationController.root_context -%>/settings/index"><%= message('layout.administration') -%></a>
+          </li>
+        <% end %>
       </ul>
     </div>
     <div id="nav">
           <input type="text" size="15" name="search" id="searchInput" onFocus="autocompleteResources()" value="<%= message('search_verb') -%>"/>
           <img src="<%= ApplicationController.root_context -%>/images/loading-small.gif" id="searchingResources" style="display:none">
         </li>
-        <% if is_admin? %>
-          <li>
-            <a href="<%= ApplicationController.root_context -%>/settings/index"><%= message('layout.administration') -%></a>
-          </li>
-        <% end %>
         <% if logged_in? %>
           <%= render 'layouts/menu_user' -%>
         <% else %>
               <li class="<%= 'active' if selected -%>">
                 <a href="<%= ApplicationController.root_context -%><%= page_url -%>"><%= message(page.getId() + '.page', :default => page.getTitle()) -%></a></li>
             <% end %>
-            
+
             <li class="spacer"></li>
             <li class="sidebar-title"><%= message('sidebar.tools') -%></li>
-            
+
             <li class="<%= 'active' if request.request_uri.include?('/profiles') || request.request_uri.include?('/alerts') || request.request_uri.include?('/rules_configuration') -%>">
               <a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a></li>
             <li class="<%= 'active' if request.request_uri.include?('/dependencies/index') -%>">
@@ -88,7 +88,7 @@
             <li class="<%= 'active' if request.request_uri.include?('/drilldown/violations') -%>">
               <a href="<%= ApplicationController.root_context -%>/drilldown/violations/<%= @project.id -%><%= "?"+period_param if period_param -%>"><%= message('violations_drilldown.page') -%></a>
               <% if controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'comparable') %>
-            <li class="<%= 'active' if request.request_uri.include?('/comparison/index') -%>">
+              <li class="<%= 'active' if request.request_uri.include?('/comparison/index') -%>">
                 <a href="<%= ApplicationController.root_context -%>/comparison/index?resource=<%= @project.key -%>"><%= message('comparison.page') -%></a></li>
             <% end %>
             <% controller.java_facade.getPages(Navigation::SECTION_RESOURCE, @project.scope, @project.qualifier, @project.language, @project.last_snapshot.metric_keys.to_java(:string)).each do |page|
 
           <% end %>
 
-        <%= yield :sidebar %>
-        <div id="logo">
-          <center><a href="http://www.sonarsource.org/" target="SonarSource"><%= image_tag('sonar.png', :alt => message('layout.sonar.slogan'), :class => 'png') -%></a></center>
-        </div>
+          <%= yield :sidebar %>
+          <div id="logo">
+            <center><a href="http://www.sonarsource.org/" target="SonarSource"><%= image_tag('sonar.png', :alt => message('layout.sonar.slogan'), :class => 'png') -%></a></center>
+          </div>
         </ul>
       </div>
     <% end %>