aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-07-08 10:55:43 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-07-08 12:45:46 +0200
commit0678a178c08bf870fa0d5a8b5523788e5641025e (patch)
tree41fc7673d6e0e300fd7655b98ac1448e36d62877
parent6e2ee84d0dc06dafb582aedffc7f4bc39c3233b1 (diff)
downloadsonarqube-0678a178c08bf870fa0d5a8b5523788e5641025e.tar.gz
sonarqube-0678a178c08bf870fa0d5a8b5523788e5641025e.zip
SONAR-4408 Move "Quality Profiles" link from admin space to the top banner of SonarQube
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb3
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_administration.html.erb19
2 files changed, 6 insertions, 16 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 4719ec4e8a5..4fac0043ac1 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,9 @@
<li>
<a href="<%= ApplicationController.root_context -%>/issues/index"><%= message('issues.page') -%></a>
</li>
+ <li>
+ <a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a>
+ </li>
</ul>
</div>
<div id="nav">
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_administration.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_administration.html.erb
index b42d763c046..9d04bef585e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_administration.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_menu_administration.html.erb
@@ -1,16 +1,3 @@
-<li>
- <a href="#" onclick="showDropdownMenu('admin-panel'); return false;" class="link-more"><%= message('layout.settings') -%></a>
-
- <div id="admin-panel" class="dropdown-menu" style="display: none">
- <ul>
- <li><a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a></li>
-
- <% if is_admin? %>
- <li><a href="<%= ApplicationController.root_context -%>/settings/index"><%= message('sidebar.project_settings') -%></a></li>
- <li><a href="<%= ApplicationController.root_context -%>/users"><%= message('sidebar.security') -%></a></li>
- <li><a href="<%= ApplicationController.root_context -%>/backup"><%= message('sidebar.system') -%></a></li>
- <% end %>
- </ul>
- </div>
-
-</li> \ No newline at end of file
+<% if is_admin? %>
+ <li><a href="<%= ApplicationController.root_context -%>/settings/index"><%= message('layout.settings') -%></a></li>
+<% end %> \ No newline at end of file