2016-06-01 12:35:43 +00:00
|
|
|
- if @issues.reorder(nil).any?
|
2013-08-06 18:12:01 +00:00
|
|
|
- @issues.group_by(&:project).each do |group|
|
2014-05-30 20:43:53 +00:00
|
|
|
.panel.panel-default.panel-small
|
2013-08-06 18:12:01 +00:00
|
|
|
- project = group[0]
|
2014-05-29 15:43:21 +00:00
|
|
|
.panel-heading
|
2015-12-02 13:00:54 +00:00
|
|
|
= link_to project.name_with_namespace, namespace_project_issues_path(project.namespace, project)
|
|
|
|
- if can?(current_user, :create_issue, project)
|
|
|
|
.pull-right
|
|
|
|
= link_to 'New issue', new_namespace_project_issue_path(project.namespace, project)
|
2013-08-06 18:12:01 +00:00
|
|
|
|
2016-02-25 19:13:36 +00:00
|
|
|
%ul.content-list.issues-list
|
2013-08-06 18:12:01 +00:00
|
|
|
- group[1].each do |issue|
|
|
|
|
= render 'projects/issues/issue', issue: issue
|
|
|
|
= paginate @issues, theme: "gitlab"
|
|
|
|
- else
|
2016-11-05 17:28:29 +00:00
|
|
|
= render 'shared/empty_states/issues'
|