- <% 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 %>