diff options
Diffstat (limited to 'app/views/snippets/_snippets.html.haml')
-rw-r--r-- | app/views/snippets/_snippets.html.haml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml index 80a3e731e1d..77b66ca74b6 100644 --- a/app/views/snippets/_snippets.html.haml +++ b/app/views/snippets/_snippets.html.haml @@ -1,7 +1,13 @@ -%ul.content-list - = render partial: 'shared/snippets/snippet', collection: @snippets - - if @snippets.empty? - %li - .nothing-here-block Nothing here. +- remote = local_assigns.fetch(:remote, false) -= paginate @snippets, theme: 'gitlab' +.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(); |