fix star button icon alignment

This commit is contained in:
winniehell 2016-07-24 01:13:13 +02:00
parent 76aa85cc80
commit a3ef844c0a
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
- 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: current_user.starred?(@project) ? 'Unstar project' : 'Star project' } do
- if current_user.starred?(@project)
= icon('star fw')
= icon('star')
%span.starred Unstar
- else
= icon('star-o fw')
= icon('star-o')
%span Star
%div.count-with-arrow
%span.arrow
@ -13,7 +13,7 @@
- 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 fw')
= icon('star')
Star
%div.count-with-arrow
%span.arrow