]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3434 Apply same behaviour to resource viewer popup icon
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 20 Feb 2013 17:32:38 +0000 (18:32 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 20 Feb 2013 17:33:45 +0000 (18:33 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb

index 6bc708cf45bc8462ac6d8768bd79ba605b6c0b6b..dac05c94dca645dc12b17c3f2deeb464e7282021 100644 (file)
@@ -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>