diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-12-09 20:40:54 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-12-09 20:40:54 +0100 |
commit | bcd81e6fdad0aa2ea3d589cdb260a64b81c480c1 (patch) | |
tree | 277fae30709632d30845472093cdf9eb7064f8a4 | |
parent | 5c8ef50965f7b26fe0f3a00ff9c81ab8afdc256d (diff) | |
download | sonarqube-bcd81e6fdad0aa2ea3d589cdb260a64b81c480c1.tar.gz sonarqube-bcd81e6fdad0aa2ea3d589cdb260a64b81c480c1.zip |
Move the link "Administration" to the left nav bar
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index 0095751ed35..60a82a02e6e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -21,6 +21,11 @@ <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"> @@ -29,11 +34,6 @@ <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 %> @@ -62,10 +62,10 @@ <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| @@ -145,10 +145,10 @@ <% 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 %> |