diff options
author | Robert Speicher <robert@gitlab.com> | 2016-06-21 18:45:14 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-06-21 18:45:14 +0000 |
commit | 63d411d755a77564f74140392327321a01318817 (patch) | |
tree | b32a63ba1a4f6cdeff5132b4a8e72fc64476c1ad | |
parent | ae63172dd22c245c3d2c0a509971dcb97622e55b (diff) | |
parent | b36d84b32912bada57d8d6af9df64cb0a2478f7c (diff) | |
download | gitlab-ce-63d411d755a77564f74140392327321a01318817.tar.gz |
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
-rw-r--r-- | app/views/projects/forks/index.html.haml | 6 | ||||
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/projects/forks/index.html.haml b/app/views/projects/forks/index.html.haml index 4bcf2d9d533..dbe9ddfde2f 100644 --- a/app/views/projects/forks/index.html.haml +++ b/app/views/projects/forks/index.html.haml @@ -40,9 +40,3 @@ = render 'projects', projects: @forks - -- if @private_forks_count > 0 - .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. 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 |