Merge branch '19954-permission-dedup-doc'
[arvados.git] / apps / workbench / app / views / application / _show_star.html.erb
index 50775f140e0459ee5be19807ca7006e29369a496..6256eae24bc98f027c0fe63881d57fc7b180ed37 100644 (file)
@@ -1,9 +1,13 @@
-<% if is_starred %>
-  <%= link_to(star_path(status: 'delete', id:@object.uuid, action_method: 'get'), class: "btn btn-xs star-unstar", title: "Remove from list of favorites", remote: true) do  %>
-            <i class="fa fa-fw fa-star"></i>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<% if current_user and is_starred %>
+  <%= link_to(star_path(status: 'delete', id:@object.uuid, action_method: 'get'), style: "color:#D00", class: "btn btn-xs star-unstar", title: "Remove from list of favorites", remote: true) do  %>
+            <i class="fa fa-lg fa-star"></i>
           <% end %>
 <% else %>
   <%= link_to(star_path(status: 'create', id:@object.uuid, action_method: 'get'), class: "btn btn-xs star-unstar", title: "Add to list of favorites", remote: true) do %>
-            <i class="fa fa-fw fa-star-o"></i>
+            <i class="fa fa-lg fa-star-o"></i>
           <% end %>
 <% end %>