]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-1650 Improve resource viewer to easily flag a file as favourite
authorFabrice Bellingard <bellingard@gmail.com>
Thu, 2 Feb 2012 10:03:24 +0000 (11:03 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Thu, 2 Feb 2012 10:03:24 +0000 (11:03 +0100)
=> Add a star icon in the code viewer header to easily tag a java
   file as favourite

sonar-server/src/main/webapp/WEB-INF/app/views/resource/_tabs.html.erb

index 7f62bb968e9ff0eb9a1a4b1944d320900912fec2..d81137ec2e1092c4d0d7d0d1a6772b8dedf94a8a 100644 (file)
@@ -3,6 +3,7 @@
    if display_title
 %>
   <div id="source_title">
+    <% if logged_in? %><%= link_to_favourite(@resource) -%><% end %>
     <span class="h1"><%= qualifier_icon(@resource) -%> <%= @resource.name(true) -%></span>
   </div>
 <% end %>