diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-12 03:44:05 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-01-20 08:14:58 +0300 |
commit | 3b75d65bd3e1bb53b0ce9755323b30221d6a4649 (patch) | |
tree | 60c88e093eaabf432e186c853d89ed9dcfae8feb /app/views/shared/projects/_list.html.haml | |
parent | b2e5b57fab4d73a5ad043d82457268fdb3864a89 (diff) |
Show forks counter on listing. #2406
Diffstat (limited to 'app/views/shared/projects/_list.html.haml')
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml index c0a7b9f08fa..0c774d217c3 100644 --- a/app/views/shared/projects/_list.html.haml +++ b/app/views/shared/projects/_list.html.haml @@ -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 |