2019-02-22 12:12:36 +00:00
|
|
|
- remote = local_assigns.fetch(:remote, false)
|
|
|
|
- link_project = local_assigns.fetch(:link_project, false)
|
|
|
|
|
2019-09-02 11:12:20 +00:00
|
|
|
- if @snippets.to_a.empty?
|
|
|
|
.nothing-here-block= s_("SnippetsEmptyState|No snippets found")
|
|
|
|
- else
|
2019-02-22 12:12:36 +00:00
|
|
|
.snippets-list-holder
|
|
|
|
%ul.content-list
|
|
|
|
= render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }
|
|
|
|
|
2020-02-25 21:09:23 +00:00
|
|
|
= paginate_collection @snippets, remote: remote
|