diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-20 18:32:38 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-20 18:33:45 +0100 |
commit | 2a8b662e1e3b29289040c75a5bc9890d4e4a4bcc (patch) | |
tree | f08111fd586b207e14709d5b0629960bf72a1f97 /sonar-server | |
parent | 1232731f7808296b6ff78c417d729ba50406273b (diff) | |
download | sonarqube-2a8b662e1e3b29289040c75a5bc9890d4e4a4bcc.tar.gz sonarqube-2a8b662e1e3b29289040c75a5bc9890d4e4a4bcc.zip |
SONAR-3434 Apply same behaviour to resource viewer popup icon
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb index 6bc708cf45b..dac05c94dca 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb @@ -32,9 +32,8 @@ end %> <% unless @popup_mode %> <li class="<%= 'first' if first -%>"> - <a href="<%= ApplicationController.root_context -%>/resource/index/<%= @resource.key -%>?display_title=true" onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;" id="new-window-<%= @resource.key.parameterize -%>"> - <%= image_tag 'new-window-16.gif', :alt => message('new_window') -%> - </a> + <a href="<%= url_for :controller => 'resource', :action => 'index', :id => @resource.key, :period => params[:period], :metric => params[:metric], :rule => params[:rule] ? params[:rule] : params[:rule_sev], :display_title => 'true' -%>" + onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;" id="new-window-<%= @resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a> </li> <% end %> </ul> |