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

14 lines
595 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
.panel.panel-default.contributed-projects
.panel-heading Projects contributed to
2015-09-25 12:07:36 +05:30
= render 'shared/projects/list',
2015-04-26 12:48:37 +05:30
projects: contributed_projects.sort_by(&:star_count).reverse,
projects_limit: 5, stars: true, avatar: false
- if local_assigns.has_key?(:projects) && projects.present?
.panel.panel-default
.panel-heading Personal projects
2015-09-25 12:07:36 +05:30
= render 'shared/projects/list',
2015-04-26 12:48:37 +05:30
projects: projects.sort_by(&:star_count).reverse,
projects_limit: 10, stars: true, avatar: false