diff options
author | Berna Castro <bernacas@gmail.com> | 2016-12-15 13:29:05 +0100 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-27 20:20:17 -0200 |
commit | 1c749880e51b641e0e3385c58a3aa289fd1bbbb6 (patch) | |
tree | 5e7450a54d241754248404df5e7c4ba91c126d18 /app/views | |
parent | c85c681505b3d52f8ffa6729ebbbf2846e73cf30 (diff) | |
download | gitlab-ce-1c749880e51b641e0e3385c58a3aa289fd1bbbb6.tar.gz |
Refactor code when rendering a collection of issues
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/_issues.html.haml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/shared/_issues.html.haml b/app/views/shared/_issues.html.haml index f4401300ceb..69e6ee8ec40 100644 --- a/app/views/shared/_issues.html.haml +++ b/app/views/shared/_issues.html.haml @@ -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' |