Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / application / _show_star.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% if current_user and is_starred %>
6   <%= 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  %>
7             <i class="fa fa-lg fa-star"></i>
8           <% end %>
9 <% else %>
10   <%= 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 %>
11             <i class="fa fa-lg fa-star-o"></i>
12           <% end %>
13 <% end %>