diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-09 19:54:13 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-10 09:57:23 +0300 |
commit | 0608ecbc69c991efcf56f7872cf1b06416d4bd10 (patch) | |
tree | 1721385ad0e4df87e819692e152c069bf80ced5e /app/views/snippets | |
parent | 7f3fc26ec98193fa0c3bfeb7b78c81176bb9c689 (diff) |
conditionally display assoc project info in snippets index
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_snippets.html.haml | 3 |
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. |