diff options
-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) -%> |