diff options
author | Robert Speicher <robert@gitlab.com> | 2016-06-21 21:45:14 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-06-21 21:46:51 +0300 |
commit | 7b0466e09138d391187fbb4297e4f04ababc315a (patch) | |
tree | 9118d4c9f518c2ccf127601da7706775e5f18981 /app/views/shared | |
parent | ef54aa69a3c4245d1d420c5ce3a95da1393d70b5 (diff) |
Merge branch '17671-private-forks-list-ui-issues' into 'master'
Fixed private forks notice position in forks list
Moves the private forks notification item into the list on the forks page.
Closes #17671.
See merge request !4573
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml index 2e08bb2ac08..3a9dd37dc7d 100644 --- a/app/views/shared/projects/_list.html.haml +++ b/app/views/shared/projects/_list.html.haml @@ -16,6 +16,12 @@ = 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, forks: forks, show_last_commit_as_description: show_last_commit_as_description + + - if @private_forks_count && @private_forks_count > 0 + %li.project-row.private-forks-notice + = icon('lock fw', base: 'circle', class: 'fa-lg private-fork-icon') + %strong= pluralize(@private_forks_count, 'private fork') + %span you have no access to. = paginate(projects, remote: remote, theme: "gitlab") if projects.respond_to? :total_pages - else .nothing-here-block No projects found |