_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
13
  - if any_projects?(projects)
14
    %ul.projects-list
15
      - projects.each_with_index do |project, i|
16
        - css_class = (i >= projects_limit) || project.pending_delete? ? 'hide' : nil
17 18 19
        = 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

      - 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')
25
          %span  you have no access to.
26
    = paginate_collection(projects, remote: remote)
27
  - else
28
    .nothing-here-block No projects found