Add star icon to star button

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-07-09 11:00:14 +02:00
parent e49f1a274a
commit 3cdd68475f
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A

View file

@ -1,5 +1,6 @@
- if current_user
= link_to toggle_star_namespace_project_path(@project.namespace, @project), class: 'btn star-btn toggle-star', method: :post, remote: true do
= icon('star')
- if current_user.starred?(@project)
Unstar
- else