summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-12-09 10:54:13 -0600
committerMike Greiling <mike@pixelcog.com>2016-12-10 00:57:23 -0600
commit0608ecbc69c991efcf56f7872cf1b06416d4bd10 (patch)
tree1721385ad0e4df87e819692e152c069bf80ced5e /app/views/snippets
parent7f3fc26ec98193fa0c3bfeb7b78c81176bb9c689 (diff)
downloadgitlab-ce-0608ecbc69c991efcf56f7872cf1b06416d4bd10.tar.gz
conditionally display assoc project info in snippets index
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_snippets.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml
index 77b66ca74b6..ac3701233ad 100644
--- a/app/views/snippets/_snippets.html.haml
+++ b/app/views/snippets/_snippets.html.haml
@@ -1,8 +1,9 @@
- remote = local_assigns.fetch(:remote, false)
+- link_project = local_assigns.fetch(:link_project, false)
.snippets-list-holder
%ul.content-list
- = render partial: 'shared/snippets/snippet', collection: @snippets
+ = render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }
- if @snippets.empty?
%li
.nothing-here-block Nothing here.