Fix project star tooltip in to show actual message.

This commit is contained in:
Fatih Acet 2016-06-15 15:14:23 +03:00
parent f28bbf9468
commit d8b399a8c6

View file

@ -1,5 +1,5 @@
- if current_user
= link_to toggle_star_namespace_project_path(@project.namespace, @project), class: 'btn star-btn toggle-star has-tooltip', method: :post, remote: true, title: "Star project" do
= link_to toggle_star_namespace_project_path(@project.namespace, @project), { class: 'btn star-btn toggle-star has-tooltip', method: :post, remote: true, title: current_user.starred?(@project) ? 'Unstar project' : 'Star project' } do
- if current_user.starred?(@project)
= icon('star fw')
%span.starred Unstar