From: Fabrice Bellingard Date: Thu, 2 Feb 2012 10:03:24 +0000 (+0100) Subject: SONAR-1650 Improve resource viewer to easily flag a file as favourite X-Git-Tag: 2.14~197 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=173e18fb63524410d228e941b0382249750823a7;p=sonarqube.git SONAR-1650 Improve resource viewer to easily flag a file as favourite => Add a star icon in the code viewer header to easily tag a java file as favourite --- 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 7f62bb968e9..d81137ec2e1 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 @@ -3,6 +3,7 @@ if display_title %>
+ <% if logged_in? %><%= link_to_favourite(@resource) -%><% end %> <%= qualifier_icon(@resource) -%> <%= @resource.name(true) -%>
<% end %>