gitlab-org--gitlab-foss/app/views/projects/buttons/_star.html.haml
Rémy Coutable 53c5b6717c Fix translations for Star/Unstar in JS file
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-21 12:44:16 +02:00

21 lines
651 B
Text

- if current_user
= link_to toggle_star_project_path(@project), { class: 'btn star-btn toggle-star', method: :post, remote: true } do
- if current_user.starred?(@project)
= icon('star')
%span.starred= _('Unstar')
- else
= icon('star-o')
%span= s_('StarProject|Star')
.count-with-arrow
%span.arrow
%span.count.star-count
= @project.star_count
- else
= link_to new_user_session_path, class: 'btn has-tooltip star-btn', title: _('You must sign in to star a project') do
= icon('star')
#{ s_('StarProject|Star') }
.count-with-arrow
%span.arrow
%span.count
= @project.star_count