gitlab-org--gitlab-foss/app/views/snippets/_snippets.html.haml
Rémy Coutable f99d8786b7
Fix snippets pagination
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-26 12:42:12 +02:00

13 lines
329 B
Text

- remote = local_assigns.fetch(:remote, false)
.snippets-list-holder
%ul.content-list
= render partial: 'shared/snippets/snippet', collection: @snippets
- if @snippets.empty?
%li
.nothing-here-block Nothing here.
= paginate @snippets, theme: 'gitlab', remote: remote
:javascript
gl.SnippetsList();