- 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
  = paginate @issues, theme: "gitlab"
- else
  = render 'shared/empty_states/issues'

- if @issues.to_a.any?
  .panel.panel-default.panel-small
    %ul.content-list.issues-list
      = render partial: 'projects/issues/issue', collection: @issues
  = paginate @issues, theme: "gitlab"
- else
  = render 'shared/empty_states/issues'

Refactor code when rendering a collection of issues
Refactor code when rendering a collection of issues
