Commit 1c749880 authored by Berna Castro's avatar Berna Castro Committed by Oswaldo Ferreira

Refactor code when rendering a collection of issues

parent c85c6815
- 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'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment