diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-21 18:18:03 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-21 18:18:03 +0100 |
commit | 39cbebf91fccd6344eb5d08d5aa7876fa8fdc780 (patch) | |
tree | d43a95e25cd389ef3d953623f5afa90d9ee75f82 | |
parent | f9675acba2cc21d3c8909493964c000da00b8512 (diff) | |
download | sonarqube-39cbebf91fccd6344eb5d08d5aa7876fa8fdc780.tar.gz sonarqube-39cbebf91fccd6344eb5d08d5aa7876fa8fdc780.zip |
SONAR-3434 Drilldown: Allow files to be opened in new tabs
AKA the "Dinesh most wanted feature" ;-)
-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, 10 insertions, 2 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 ba945b3b1b7..aba26c4e3a3 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 @@ -61,7 +61,11 @@ %> <tr class="<%= clazz -%>" id="row_<%= index -%>_<%= row_index -%>"> <td nowrap> - <% unless resource.source_code? %> + <% if resource.source_code? %> + <%= link_to(image_tag('zoom.png'), + {:controller => 'dashboard', :action => 'index', :id => resource.key, :period => params[:period], + :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity }) %> + <% else %> <%= link_to(image_tag('zoom.png'), {:id => resource.id, :metric => @metric.id}, {:class => 'nolink'}) -%> <% end %> <%= qualifier_icon(resource) -%> 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 6dc520c94ff..67dcf40d698 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 @@ -140,7 +140,11 @@ %> <tr class="<%= clazz -%>" id="row_<%= index -%>_<%= row_index -%>"> <td nowrap> - <% unless resource.source_code? %> + <% if resource.source_code? %> + <%= link_to(image_tag('zoom.png'), + {:controller => 'dashboard', :action => 'index', :id => resource.key, :period => params[:period], + :metric => @metric ? @metric.id : nil, :rule => @rule ? @rule.id : @severity }) %> + <% else %> <%= link_to(image_tag('zoom.png'), {:id => resource.id}, {:class => 'nolink'}) %> <% end %> <%= qualifier_icon(resource) -%> |