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|
|
|
|
|
- c.header do
|
|
|
|
= _('Projects contributed to')
|
|
|
|
- c.body do
|
|
|
|
= 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|
|
|
|
|
- c.header do
|
|
|
|
= _('Personal projects')
|
|
|
|
- c.body do
|
|
|
|
= 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
|