debian-mirror-gitlab/app/views/admin/users/_projects.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
890 B
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-py-0' }) do |c|
2023-07-09 08:55:56 +05:30
- c.with_header do
2022-11-25 23:54:43 +05:30
= _('Projects contributed to')
2023-07-09 08:55:56 +05:30
- c.with_body do
2022-11-25 23:54:43 +05:30
= render 'shared/projects/list',
projects: contributed_projects.sort_by(&:star_count).reverse,
2023-01-13 00:05:48 +05:30
projects_limit: 5, stars: true, avatar: false, compact_mode: true
2015-12-23 02:04:40 +05:30
- if local_assigns.has_key?(:projects) && projects.present?
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-py-0' }) do |c|
2023-07-09 08:55:56 +05:30
- c.with_header do
2022-11-25 23:54:43 +05:30
= _('Personal projects')
2023-07-09 08:55:56 +05:30
- c.with_body do
2022-11-25 23:54:43 +05:30
= render 'shared/projects/list',
projects: projects.sort_by(&:star_count).reverse,
2023-01-13 00:05:48 +05:30
projects_limit: 10, stars: true, avatar: false, compact_mode: true