2015-08-26 16:44:02 -04:00
|
|
|
- projects_limit = 20 unless local_assigns[:projects_limit]
|
|
|
|
- avatar = true unless local_assigns[:avatar] == false
|
2016-01-11 15:36:42 -05:00
|
|
|
- use_creator_avatar = false unless local_assigns[:use_creator_avatar] == true
|
2015-08-26 16:44:02 -04:00
|
|
|
- stars = true unless local_assigns[:stars] == false
|
2016-01-11 19:44:05 -05:00
|
|
|
- forks = false unless local_assigns[:forks] == true
|
2015-09-24 08:00:23 -04:00
|
|
|
- ci = false unless local_assigns[:ci] == true
|
2015-10-09 12:35:09 -04:00
|
|
|
- skip_namespace = false unless local_assigns[:skip_namespace] == true
|
2016-01-12 20:07:59 -05:00
|
|
|
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true
|
2016-02-24 11:08:00 -05:00
|
|
|
- remote = false unless local_assigns[:remote] == true
|
2017-04-26 08:04:22 -04:00
|
|
|
- load_pipeline_status(projects)
|
2015-08-26 16:44:02 -04:00
|
|
|
|
2017-03-03 05:13:03 -05:00
|
|
|
.js-projects-list-holder
|
2017-08-04 09:40:33 -04:00
|
|
|
- if any_projects?(projects)
|
2017-03-23 06:36:17 -04:00
|
|
|
%ul.projects-list
|
2016-03-03 07:09:58 -05:00
|
|
|
- projects.each_with_index do |project, i|
|
2017-06-13 11:32:50 -04:00
|
|
|
- css_class = (i >= projects_limit) || project.pending_delete? ? 'hide' : nil
|
2016-03-03 07:09:58 -05:00
|
|
|
= 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
|
2016-06-09 11:06:13 -04:00
|
|
|
|
|
|
|
- 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-08-06 15:49:14 -04:00
|
|
|
%span you have no access to.
|
2017-08-10 09:01:38 -04:00
|
|
|
= paginate_collection(projects, remote: remote)
|
2016-02-03 16:33:01 -05:00
|
|
|
- else
|
2016-03-02 06:11:08 -05:00
|
|
|
.nothing-here-block No projects found
|