summaryrefslogtreecommitdiff
path: root/app/views/shared/projects
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-03 18:21:14 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-04 13:03:41 -0500
commit2ad094132de3c491511261bf0e6a2e577fd699dd (patch)
tree7ba4cf6ed687cde58b13a0c4151ac243db09e47f /app/views/shared/projects
parent2c871ca1968846871ed264cad34b50611eecae3b (diff)
downloadgitlab-ce-2ad094132de3c491511261bf0e6a2e577fd699dd.tar.gz
Various filter fixes
Diffstat (limited to 'app/views/shared/projects')
-rw-r--r--app/views/shared/projects/_list.html.haml14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml
index 80795063f6f..83188e58135 100644
--- a/app/views/shared/projects/_list.html.haml
+++ b/app/views/shared/projects/_list.html.haml
@@ -8,20 +8,22 @@
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true
%ul.projects-list
- - if @projects.any?
- - @projects.each_with_index do |project, i|
+ - if projects.any?
+ - 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,
forks: forks, show_last_commit_as_description: show_last_commit_as_description
- - if @projects.size > projects_limit
+ - if projects.size > projects_limit
%li.bottom.center
.light
- #{projects_limit} of #{pluralize(@projects.count, 'project')} displayed.
+ #{projects_limit} of #{pluralize(projects.count, 'project')} displayed.
= link_to '#', class: 'js-expand' do
Show all
- = paginate @projects, theme: "gitlab"
+ = paginate projects, theme: "gitlab" if !projects.kind_of?(Array)
- else
%h3 No projects found
- %p.slead Try searching for a different project.
+
+:javascript
+ new ProjectsList();