2015-11-25 22:00:35 +00:00
|
|
|
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
|
2018-04-10 17:11:34 +00:00
|
|
|
.card.contributed-projects
|
2021-04-22 21:09:53 +00:00
|
|
|
.card-header= _('Projects contributed to')
|
2015-11-25 22:00:35 +00:00
|
|
|
= render 'shared/projects/list',
|
|
|
|
projects: contributed_projects.sort_by(&:star_count).reverse,
|
|
|
|
projects_limit: 5, stars: true, avatar: false
|
|
|
|
|
|
|
|
- if local_assigns.has_key?(:projects) && projects.present?
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
2021-04-22 21:09:53 +00:00
|
|
|
.card-header= _('Personal projects')
|
2015-11-25 22:00:35 +00:00
|
|
|
= render 'shared/projects/list',
|
|
|
|
projects: projects.sort_by(&:star_count).reverse,
|
|
|
|
projects_limit: 10, stars: true, avatar: false
|