Refactor code when rendering a collection of issues
This commit is contained in:
parent
c85c681505
commit
1c749880e5
1 changed files with 1 additions and 4 deletions
|
@ -1,10 +1,7 @@
|
||||||
- if @issues.to_a.any?
|
- if @issues.to_a.any?
|
||||||
.panel.panel-default.panel-small
|
.panel.panel-default.panel-small
|
||||||
%ul.content-list.issues-list
|
%ul.content-list.issues-list
|
||||||
- @issues.each do |issue|
|
= render partial: 'projects/issues/issue', collection: @issues
|
||||||
- project = issue.project
|
|
||||||
|
|
||||||
= render 'projects/issues/issue', issue: issue
|
|
||||||
= paginate @issues, theme: "gitlab"
|
= paginate @issues, theme: "gitlab"
|
||||||
- else
|
- else
|
||||||
= render 'shared/empty_states/issues'
|
= render 'shared/empty_states/issues'
|
||||||
|
|
Loading…
Reference in a new issue