Read about our upcoming Code of Conduct on this issue

_list.html.haml 1.48 KB
Newer Older
1
2
- projects_limit = 20 unless local_assigns[:projects_limit]
- avatar = true unless local_assigns[:avatar] == false
3
- use_creator_avatar = false unless local_assigns[:use_creator_avatar] == true
4
- stars = true unless local_assigns[:stars] == false
5
- forks = false unless local_assigns[:forks] == true
6
- ci = false unless local_assigns[:ci] == true
7
- skip_namespace = false unless local_assigns[:skip_namespace] == true
8
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true
9
- remote = false unless local_assigns[:remote] == true
10
- load_pipeline_status(projects)
11

12
.js-projects-list-holder
Josh Frye's avatar
Josh Frye committed
13
  - if projects.any?
14
    %ul.projects-list
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
16
17
18
19
      - 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
20
21
22
23
24
25

      - 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.
26
    = paginate(projects, remote: remote, theme: "gitlab") if projects.respond_to? :total_pages
27
  - else
28
    .nothing-here-block No projects found