diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-20 18:26:55 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-02-20 18:33:44 +0100 |
commit | 1232731f7808296b6ff78c417d729ba50406273b (patch) | |
tree | f6bec978d626ef9783e4225d8e77be1b1b792d8f /sonar-server | |
parent | 17a2fd51a13238eda003aed85249278253d8003f (diff) | |
download | sonarqube-1232731f7808296b6ff78c417d729ba50406273b.tar.gz sonarqube-1232731f7808296b6ff78c417d729ba50406273b.zip |
SONAR-3434 Files should be opened in new window
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb | 6 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb index bfd94f80834..1295da6a92d 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb @@ -62,10 +62,8 @@ <tr class="<%= clazz -%>" id="row_<%= index -%>_<%= row_index -%>"> <td nowrap> <% if resource.source_code? %> - <%= link_to(image_tag('new-window-16.gif'), - {:controller => 'dashboard', :action => 'index', :id => resource.key, :period => params[:period], - :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity }, - :target => '_blank') %> + <a href="<%= url_for :controller => 'resource', :action => 'index', :id => resource.key, :period => params[:period], :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity, :display_title => 'true' -%>" + onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;" id="popup-<%= resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a> <% else %> <%= link_to(image_tag('zoom.png'), {:id => resource.id, :metric => @metric.id}, {:class => 'nolink'}) -%> <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb index 946ec329433..2ed8690458d 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb @@ -141,10 +141,8 @@ <tr class="<%= clazz -%>" id="row_<%= index -%>_<%= row_index -%>"> <td nowrap> <% if resource.source_code? %> - <%= link_to(image_tag('new-window-16.gif'), - {:controller => 'dashboard', :action => 'index', :id => resource.key, :period => params[:period], - :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity }, - :target => '_blank') %> + <a href="<%= url_for :controller => 'resource', :action => 'index', :id => resource.key, :period => params[:period], :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity, :display_title => 'true' -%>" + onclick="window.open(this.href,'resource-<%= resource.key.parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;" id="popup-<%= resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a> <% else %> <%= link_to(image_tag('zoom.png'), {:id => resource.id}, {:class => 'nolink'}) %> <% end %> |