aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-09-24 22:49:26 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-09-24 22:49:26 +0200
commitc36b917d07daa7c64331f64482e9aa586ce575cb (patch)
tree90f85d6abf610579fb6463f7f30ed3080adc30c1
parent2be9d39965149fb5395e06c5036d79dab63447e4 (diff)
downloadsonarqube-c36b917d07daa7c64331f64482e9aa586ce575cb.tar.gz
sonarqube-c36b917d07daa7c64331f64482e9aa586ce575cb.zip
Restore the link "reviews" in the global sidebar
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb3
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb7
2 files changed, 8 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
index 308a84a491c..e580d0d152a 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/profiles_controller.rb
@@ -56,7 +56,7 @@ class ProfilesController < ApplicationController
#
#
- # POST /profiles/create?name=<profile name>&language=<language>
+ # POST /profiles/create?name=<profile name>&language=<language>&[backup=<file>]
#
#
def create
@@ -154,6 +154,7 @@ class ProfilesController < ApplicationController
end
+ # Modal window to restore profile backup
def restore_form
render :partial => 'profiles/restore_form'
end
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 e9def77b129..9788893ab96 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
@@ -50,8 +50,13 @@
</li>
<% end %>
+ <li class="<%= 'selected' if controller.controller_path=='reviews' -%>">
+ <a href="<%= ApplicationController.root_context -%>/reviews/index"><%= message('reviews.page') -%></a>
+ </li>
+
<li class="<%= 'selected' if controller.controller_path=='dependencies' -%>">
- <a href="<%= ApplicationController.root_context -%>/dependencies/index"><%= message('dependencies.page') -%></a></li>
+ <a href="<%= ApplicationController.root_context -%>/dependencies/index"><%= message('dependencies.page') -%></a>
+ </li>
<% controller.java_facade.getPages(Navigation::SECTION_HOME, nil, nil, nil, nil).each do |page|
page_url = (page.isController() ? page.getId() : "/plugins/home/#{page.getId()}")