Add links to starrers in lists of projects

This commit is contained in:
Camil Staps 2019-01-26 11:44:49 +01:00
parent 59976090b5
commit 1171517a68
No known key found for this signature in database
GPG key ID: 4A9BFD4F6A415F83

View file

@ -63,7 +63,9 @@
- if project.archived - if project.archived
%span.d-flex.icon-wrapper.badge.badge-warning archived %span.d-flex.icon-wrapper.badge.badge-warning archived
- if stars - if stars
%span.d-flex.align-items-center.icon-wrapper.stars.has-tooltip{ data: { container: 'body', placement: 'top' }, title: _('Stars') } = link_to project_starrers_path(project),
class: "d-flex align-items-center icon-wrapper stars has-tooltip",
title: _('Stars'), data: { container: 'body', placement: 'top' } do
= sprite_icon('star', size: 14, css_class: 'append-right-4') = sprite_icon('star', size: 14, css_class: 'append-right-4')
= number_with_delimiter(project.star_count) = number_with_delimiter(project.star_count)
- if forks - if forks