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

14 lines
561 B
Text
Raw Normal View History

2015-12-23 02:04:40 +05:30
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
2018-11-08 19:23:39 +05:30
.card.contributed-projects
.card-header Projects contributed to
2015-12-23 02:04:40 +05:30
= 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-11-08 19:23:39 +05:30
.card
.card-header Personal projects
2015-12-23 02:04:40 +05:30
= render 'shared/projects/list',
projects: projects.sort_by(&:star_count).reverse,
projects_limit: 10, stars: true, avatar: false