summaryrefslogtreecommitdiff
path: root/app/views/snippets/_snippets.html.haml
blob: ac3701233ad1e8411391a9c190a65c3ec2e40462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- 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, locals: { link_project: link_project }
    - if @snippets.empty?
      %li
        .nothing-here-block Nothing here.

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

:javascript
  gl.SnippetsList();