gitlab-org--gitlab-foss/app/views/admin/users/_projects.html.haml

14 lines
573 B
Text
Raw Normal View History

- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
.card.contributed-projects
.card-header= _('Projects contributed to')
= 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?
.card
.card-header= _('Personal projects')
= render 'shared/projects/list',
projects: projects.sort_by(&:star_count).reverse,
projects_limit: 10, stars: true, avatar: false