diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-12 22:14:04 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-01-20 00:14:58 -0500 |
commit | b0a5a99e9652d6ad9898cd4bd08363516fb15055 (patch) | |
tree | 36cac7080d9450f5f8f778669fc98d6406490f5a /app | |
parent | b6170d2d8b1017ce135c17916a03ebcc2d3bcf67 (diff) | |
download | gitlab-ce-b0a5a99e9652d6ad9898cd4bd08363516fb15055.tar.gz |
Little update to copy and custom content for empty results. #2406
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/forks/index.html.haml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/app/views/projects/forks/index.html.haml b/app/views/projects/forks/index.html.haml index fabd6b573a2..985924ad052 100644 --- a/app/views/projects/forks/index.html.haml +++ b/app/views/projects/forks/index.html.haml @@ -2,7 +2,7 @@ .pull-left - public_count = @public_forks.size - protected_count = @protected_forks.size - - full_count_title = ["#{public_count} public", "#{protected_count} protected"].join(' and ') + - full_count_title = "#{public_count} public and #{protected_count} private" == #{pluralize(@all_forks.size, 'fork')}: #{full_count_title} .pull-right @@ -21,11 +21,16 @@ .projects-list-holder - = render 'shared/projects/list', projects: @public_forks, use_creator_avatar: true, - forks: true, show_last_commit_as_description: true + - if @public_forks.blank? + %ul.content-list + %li + .nothing-here-block No forks to show + - else + = render 'shared/projects/list', projects: @public_forks, use_creator_avatar: true, + forks: true, show_last_commit_as_description: true - - if protected_count > 0 - %ul.projects-list - %li.project-row - %strong= pluralize(protected_count, 'protected fork') - %span you have no access to. + - if protected_count > 0 + %ul.projects-list + %li.project-row + %strong= pluralize(protected_count, 'private fork') + %span you have no access to. |