summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerna Castro <bernacas@gmail.com>2016-12-15 13:29:05 +0100
committerOswaldo Ferreira <oswaldo@gitlab.com>2017-01-27 20:20:17 -0200
commit1c749880e51b641e0e3385c58a3aa289fd1bbbb6 (patch)
tree5e7450a54d241754248404df5e7c4ba91c126d18
parentc85c681505b3d52f8ffa6729ebbbf2846e73cf30 (diff)
downloadgitlab-ce-1c749880e51b641e0e3385c58a3aa289fd1bbbb6.tar.gz
Refactor code when rendering a collection of issues
-rw-r--r--app/views/shared/_issues.html.haml5
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'