Commit 3b75d65b authored by Rubén Dávila's avatar Rubén Dávila

Show forks counter on listing. #2406

parent b2e5b57f
......@@ -15,7 +15,8 @@
== #{pluralize(@all_forks.size, 'fork')}: #{full_count_title}
.projects-list-holder
= render 'shared/projects/list', projects: @public_forks, use_creator_avatar: true
= render 'shared/projects/list', projects: @public_forks, use_creator_avatar: true,
forks: true
- if protected_count > 0
%ul.projects-list
......
......@@ -2,6 +2,7 @@
- avatar = true unless local_assigns[:avatar] == false
- use_creator_avatar = false unless local_assigns[:use_creator_avatar] == true
- stars = true unless local_assigns[:stars] == false
- forks = false unless local_assigns[:forks] == true
- ci = false unless local_assigns[:ci] == true
- skip_namespace = false unless local_assigns[:skip_namespace] == true
......@@ -9,7 +10,8 @@
- projects.each_with_index do |project, i|
- css_class = (i >= projects_limit) ? 'hide' : nil
= render "shared/projects/project", project: project, skip_namespace: skip_namespace,
avatar: avatar, stars: stars, css_class: css_class, ci: ci, use_creator_avatar: use_creator_avatar
avatar: avatar, stars: stars, css_class: css_class, ci: ci, use_creator_avatar: use_creator_avatar,
forks: forks
- if projects.size > projects_limit
%li.bottom.center
......
- avatar = true unless local_assigns[:avatar] == false
- stars = true unless local_assigns[:stars] == false
- forks = false unless local_assigns[:forks] == true
- ci = false unless local_assigns[:ci] == true
- skip_namespace = false unless local_assigns[:skip_namespace] == true
- css_class = '' unless local_assigns[:css_class]
......@@ -29,6 +30,10 @@
- if ci_commit
= render_ci_status(ci_commit)
 
- if forks
%span
%i.fa.fa-code-fork
= project.forks_count
- if stars
%span
%i.fa.fa-star
......
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