2019-07-07 11:18:12 +05:30
|
|
|
- remote = local_assigns.fetch(:remote, false)
|
|
|
|
- link_project = local_assigns.fetch(:link_project, false)
|
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
- if @snippets.to_a.empty?
|
|
|
|
.nothing-here-block= s_("SnippetsEmptyState|No snippets found")
|
|
|
|
- else
|
2019-07-07 11:18:12 +05:30
|
|
|
.snippets-list-holder
|
|
|
|
%ul.content-list
|
|
|
|
= render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
= paginate_collection @snippets, remote: remote
|