diff options
author | Sean McGivern <sean@gitlab.com> | 2016-09-02 12:29:05 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-09-02 16:24:30 +0100 |
commit | e119f994d779878e49d8e1d785725e80b2c48b27 (patch) | |
tree | 1790cf12cbfb32e9c6f844c760198344ddc42d02 /app/views/snippets | |
parent | faac71215789cb8224c14be0a4fcbe252a99fa4f (diff) | |
download | gitlab-ce-e119f994d779878e49d8e1d785725e80b2c48b27.tar.gz |
Fix pagination on user snippets page
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_snippets.html.haml | 16 |
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(); |