summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets/_list.html.haml
blob: 5d2152eb4114139650f19cf737432dae3ff0be72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- remote = local_assigns.fetch(:remote, false)
- link_project = local_assigns.fetch(:link_project, false)

- if @snippets.exists?
  .snippets-list-holder
    %ul.content-list
      = render partial: 'shared/snippets/snippet', collection: @snippets, locals: { link_project: link_project }

    = paginate @snippets, theme: 'gitlab', remote: remote

- else
  .nothing-here-block= s_("SnippetsEmptyState|No snippets found")