Merge branch '8400-additional-gitignore' of https://github.com/wtsi-hgi/arvados close...
[arvados.git] / apps / workbench / app / views / projects / show.html.erb
index 0f9df7693f11c57e9ab87804a440dca1db7a8070..6033a3491051d657bfb470eb351f2df710edb90c 100644 (file)
@@ -3,17 +3,7 @@
     <% if @object.uuid == current_user.andand.uuid %>
       Home
     <% else %>
-      <% starred = false %>
-      <% starred = true if is_starred %>
-      <% if starred %>
-        <%= link_to(url_for({action: 'star', status: 'delete', id: @object.uuid, controller: 'projects'}), method: :post, class: "btn btn-xs", title: "Remove from list of favorites") do %>
-            <i class="fa fa-fw fa-star"></i>
-          <% end %>
-      <% else %>
-        <%= link_to(url_for({action: 'star', status: 'create', id: @object.uuid, controller: 'projects'}), method: :post, class: "btn btn-xs", title: "Add to list of favorites") do %>
-            <i class="fa fa-fw fa-star-o"></i>
-          <% end %>
-      <% end %>
+      <%= render partial: "show_star" %>
       <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %>
     <% end %>
   </h2>