diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-02 12:49:55 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-02-02 12:51:23 +0100 |
commit | 9f4c5046e17e61c2b8682b8485ebae7ba6e5d747 (patch) | |
tree | cad1f9cd17348df20e952cb31f69f9f420057938 | |
parent | ffb17d7291b42b51784aab7457afc97b3cc9dae8 (diff) | |
download | sonarqube-9f4c5046e17e61c2b8682b8485ebae7ba6e5d747.tar.gz sonarqube-9f4c5046e17e61c2b8682b8485ebae7ba6e5d747.zip |
SONAR-3088 Keep period config when navigating between dashboards
=> When switching from a project dashboard page to another one, the
differential view configuration should be kept.
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb | 2 |
1 files changed, 1 insertions, 1 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 92bdd4e0d13..f1427291611 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 @@ -51,7 +51,7 @@ <% elsif (selected_section==Navigation::SECTION_RESOURCE) %> <% ActiveDashboard.user_dashboards(current_user).each do |active_dashboard| %> <li class="<%= 'selected' if @dashboard && controller.controller_path=='dashboard' && active_dashboard.dashboard_id==@dashboard.id -%>"> - <a href="<%= ApplicationController.root_context -%>/dashboard/index/<%= @project.id -%>?did=<%= active_dashboard.dashboard_id -%>"><%= active_dashboard.dashboard.name(true) -%></a> + <a href="<%= ApplicationController.root_context -%>/dashboard/index/<%= @project.id -%>?did=<%= active_dashboard.dashboard_id -%><%= "&period=#{params[:period]}" if params[:period] -%>"><%= active_dashboard.dashboard.name(true) -%></a> </li> <% end %> <li class="<%= 'selected' if request.request_uri.include?('/components/index') -%>"> |