Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_projects.html.haml « users « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9f5c560b41de05229d1eac36de7f0c8cf926f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- 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