diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-04 02:21:14 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-04 21:03:41 +0300 |
commit | 2ad094132de3c491511261bf0e6a2e577fd699dd (patch) | |
tree | 7ba4cf6ed687cde58b13a0c4151ac243db09e47f /app/views/shared/projects/_list.html.haml | |
parent | 2c871ca1968846871ed264cad34b50611eecae3b (diff) |
Various filter fixes
Diffstat (limited to 'app/views/shared/projects/_list.html.haml')
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 14 |
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(); |