Refactor code when rendering a collection of issues

This commit is contained in:
Berna Castro 2016-12-15 13:29:05 +01:00 committed by Oswaldo Ferreira
parent c85c681505
commit 1c749880e5

View file

@ -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'