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?
|
||||
.panel.panel-default.panel-small
|
||||
%ul.content-list.issues-list
|
||||
- @issues.each do |issue|
|
||||
- project = issue.project
|
||||
|
||||
= render 'projects/issues/issue', issue: issue
|
||||
= render partial: 'projects/issues/issue', collection: @issues
|
||||
= paginate @issues, theme: "gitlab"
|
||||
- else
|
||||
= render 'shared/empty_states/issues'
|
||||
|
|
Loading…
Reference in a new issue