]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7224 Links to favorite projects in "My Profile" page do not work
authorStas Vilchik <vilchiks@gmail.com>
Mon, 18 Jan 2016 09:31:05 +0000 (10:31 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 18 Jan 2016 09:31:05 +0000 (10:31 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/account/_favorites.html.erb

index 3f70a93fd58300f266b5b324e81e5610c2f2b0bb..e0f6c2f658ff79e2da55dc65ec72367ec9edd0e4 100644 (file)
@@ -5,7 +5,15 @@
   <% current_user.favourites.each_with_index do |f, index | %>
     <tr <% if index >= max_favorites %>class="hidden"<% end %>>
       <td class="thin"><%= link_to_favourite f -%></td>
-      <td><%= qualifier_icon f %> <%= link_to_resource f %></td>
+      <td>
+        <%
+          url = ApplicationController.root_context + '/dashboard?id=' + url_encode(f.key)
+        %>
+        <a href="<%= url -%>" class="link-with-icon">
+          <%= qualifier_icon f %>
+          <span><%= h f.name -%></span>
+        </a>
+      </td>
     </tr>
   <% end %>
 </table>