debian-mirror-gitlab/app/views/shared/projects/_list.html.haml

32 lines
1.6 KiB
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
- projects_limit = 20 unless local_assigns[:projects_limit]
- avatar = true unless local_assigns[:avatar] == false
2016-04-02 18:10:28 +05:30
- use_creator_avatar = false unless local_assigns[:use_creator_avatar] == true
2015-09-25 12:07:36 +05:30
- stars = true unless local_assigns[:stars] == false
2016-04-02 18:10:28 +05:30
- forks = false unless local_assigns[:forks] == true
2015-10-24 18:46:33 +05:30
- ci = false unless local_assigns[:ci] == true
- skip_namespace = false unless local_assigns[:skip_namespace] == true
2018-03-17 18:26:18 +05:30
- user = local_assigns[:user]
2016-04-02 18:10:28 +05:30
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true
2016-06-02 11:05:42 +05:30
- remote = false unless local_assigns[:remote] == true
2018-12-05 23:21:45 +05:30
- skip_pagination = false unless local_assigns[:skip_pagination] == true
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
.js-projects-list-holder
2017-09-10 17:25:29 +05:30
- if any_projects?(projects)
2018-03-17 18:26:18 +05:30
- load_pipeline_status(projects)
2017-08-17 22:00:37 +05:30
%ul.projects-list
2016-06-02 11:05:42 +05:30
- projects.each_with_index do |project, i|
2017-09-10 17:25:29 +05:30
- css_class = (i >= projects_limit) || project.pending_delete? ? 'hide' : nil
2016-06-02 11:05:42 +05:30
= 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,
2018-03-17 18:26:18 +05:30
forks: forks, show_last_commit_as_description: show_last_commit_as_description, user: user
2016-06-22 15:30:34 +05:30
- 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')
2017-09-10 17:25:29 +05:30
%span  you have no access to.
2018-12-05 23:21:45 +05:30
= paginate_collection(projects, remote: remote) unless skip_pagination
2016-04-02 18:10:28 +05:30
- else
.nothing-here-block No projects found