summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-09-02 12:29:05 +0100
committerSean McGivern <sean@gitlab.com>2016-09-02 16:24:30 +0100
commite119f994d779878e49d8e1d785725e80b2c48b27 (patch)
tree1790cf12cbfb32e9c6f844c760198344ddc42d02 /app/views/snippets
parentfaac71215789cb8224c14be0a4fcbe252a99fa4f (diff)
downloadgitlab-ce-e119f994d779878e49d8e1d785725e80b2c48b27.tar.gz
Fix pagination on user snippets page
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_snippets.html.haml16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml
index 80a3e731e1d..7be4a471579 100644
--- a/app/views/snippets/_snippets.html.haml
+++ b/app/views/snippets/_snippets.html.haml
@@ -1,7 +1,11 @@
-%ul.content-list
- = render partial: 'shared/snippets/snippet', collection: @snippets
- - if @snippets.empty?
- %li
- .nothing-here-block Nothing here.
+.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'
+ = paginate @snippets, theme: 'gitlab', remote: true
+
+:javascript
+ gl.SnippetsList();