Add star icon to star button
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e49f1a274a
commit
3cdd68475f
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue