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
|
2015-08-26 16:44:02 -04:00
|
|
|
|
2016-02-25 13:44:11 -05:00
|
|
|
%ul.projects-list.content-list
|
2016-02-03 18:21:14 -05:00
|
|
|
- if projects.any?
|
|
|
|
- projects.each_with_index do |project, i|
|
2016-02-03 16:33:01 -05:00
|
|
|
- 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
|
2015-08-26 16:44:02 -04:00
|
|
|
|
2016-02-04 14:02:19 -05:00
|
|
|
- if projects.size > projects_limit && projects.kind_of?(Array)
|
2016-02-03 16:33:01 -05:00
|
|
|
%li.bottom.center
|
|
|
|
.light
|
2016-02-03 18:21:14 -05:00
|
|
|
#{projects_limit} of #{pluralize(projects.count, 'project')} displayed.
|
2016-02-03 16:33:01 -05:00
|
|
|
= link_to '#', class: 'js-expand' do
|
|
|
|
Show all
|
2016-02-24 11:08:00 -05:00
|
|
|
= paginate(projects, remote: remote, theme: "gitlab") if projects.respond_to? :total_pages
|
2016-02-03 16:33:01 -05:00
|
|
|
- else
|
2016-03-02 06:11:08 -05:00
|
|
|
.nothing-here-block No projects found
|
2016-02-03 18:21:14 -05:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
new ProjectsList();
|
2016-02-05 14:33:24 -05:00
|
|
|
Dashboard.init();
|