_projects.html.haml 595 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- if local_assigns.has_key?(:contributed_projects) && contributed_projects.present?
2
  .panel.panel-default.contributed-projects
3
    .panel-heading Projects contributed to
4
    = render 'shared/projects/list',
Douwe Maan's avatar
Douwe Maan committed
5
      projects: contributed_projects.sort_by(&:star_count).reverse,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6
      projects_limit: 5, stars: true, avatar: false
7

Douwe Maan's avatar
Douwe Maan committed
8
- if local_assigns.has_key?(:projects) && projects.present?
9 10
  .panel.panel-default
    .panel-heading Personal projects
11
    = render 'shared/projects/list',
Douwe Maan's avatar
Douwe Maan committed
12
      projects: projects.sort_by(&:star_count).reverse,
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
13
      projects_limit: 10, stars: true, avatar: false