2015-09-11 14:41:01 +05:30
|
|
|
- if current_user
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to toggle_star_project_path(@project), { class: 'btn star-btn toggle-star', method: :post, remote: true } do
|
2016-01-14 18:37:52 +05:30
|
|
|
- if current_user.starred?(@project)
|
2016-09-29 09:46:39 +05:30
|
|
|
= icon('star')
|
2017-09-10 17:25:29 +05:30
|
|
|
%span.starred= _('Unstar')
|
2016-01-14 18:37:52 +05:30
|
|
|
- else
|
2016-09-29 09:46:39 +05:30
|
|
|
= icon('star-o')
|
2017-09-10 17:25:29 +05:30
|
|
|
%span= s_('StarProject|Star')
|
2017-08-17 22:00:37 +05:30
|
|
|
.count-with-arrow
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.arrow
|
|
|
|
%span.count.star-count
|
2015-09-11 14:41:01 +05:30
|
|
|
= @project.star_count
|
|
|
|
|
|
|
|
- else
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to new_user_session_path, class: 'btn has-tooltip star-btn', title: _('You must sign in to star a project') do
|
2016-09-29 09:46:39 +05:30
|
|
|
= icon('star')
|
2017-09-10 17:25:29 +05:30
|
|
|
#{ s_('StarProject|Star') }
|
2017-08-17 22:00:37 +05:30
|
|
|
.count-with-arrow
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.arrow
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.count
|
|
|
|
= @project.star_count
|