2015-11-25 17:00:35 -05:00
|
|
|
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
|
2018-04-10 13:11:34 -04:00
|
|
|
.card.contributed-projects
|
|
|
|
.card-header Projects contributed to
|
2015-11-25 17:00:35 -05: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 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header Personal projects
|
2015-11-25 17:00:35 -05:00
|
|
|
= render 'shared/projects/list',
|
|
|
|
projects: projects.sort_by(&:star_count).reverse,
|
|
|
|
projects_limit: 10, stars: true, avatar: false
|