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