Commit b74c5dbc authored by Camil Staps's avatar Camil Staps

Add message on starrers view when nobody has starred a repository yet

parent 5e131bca
......@@ -5,6 +5,7 @@
%span.flex-project-title
= _("Starrers of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) }
%span.badge.badge-pill= @starrers.size
- if @starrers.size > 0
.nav-controls
= form_tag request.original_url, method: :get, class: 'form-inline user-search-form flex-users-form' do
.form-group
......@@ -21,5 +22,8 @@
%li
= link_to filter_user_path(sort: value), class: ("is-active" if @sort == value) do
= title
.row.prepend-top-10
- if @starrers.size > 0
.row.prepend-top-10
= render partial: 'starrer', collection: @starrers, as: :user
-else
.nothing-here-block Nobody has starred this repository yet
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment