summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-06-09 16:06:13 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2016-06-10 16:55:13 +0100
commitb36d84b32912bada57d8d6af9df64cb0a2478f7c (patch)
tree349c32d8fae8ad2b834f12615fef9ba50444a6e1
parentbedb711453d618e16bccc1e150d7a6437d8342d0 (diff)
downloadgitlab-ce-b36d84b32912bada57d8d6af9df64cb0a2478f7c.tar.gz
Moved private forks notice to projects-list so its above the pagination and inline with list
Updated CHANGELOG Removed CHANGELOG entry
-rw-r--r--app/views/projects/forks/index.html.haml6
-rw-r--r--app/views/shared/projects/_list.html.haml6
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