app/views/ckeditor/pictures/index.html.erb in ckeditor-4.0.7 vs app/views/ckeditor/pictures/index.html.erb in ckeditor-4.0.8
- old
+ new
@@ -3,13 +3,19 @@
<div class="fileupload-button gal-upload-holder">
<%= link_to I18n.t(:upload, :scope => [:ckeditor, :buttons]), 'javascript:void(0)', :class => "add" %>
</div>
</div>
- <div class="fileupload-list">
- <%= render :partial => 'ckeditor/shared/asset', :collection => @pictures %>
+ <div class="fileupload-list" data-endless="true">
+ <%= render :partial => 'ckeditor/shared/asset', :collection => @pictures.scoped %>
</div>
-</div>
-<script type="text/javascript">
- <%= Ckeditor::Utils.js_fileuploader('image') %>
-</script>
+ <% unless @pictures.last_page? %>
+ <div class="pagination">
+ <%= link_to I18n.t("ckeditor.buttons.next"), params.merge(:page => @pictures.next_page), :class => "next", :rel => "next" %>
+ </div>
+ <% end -%>
+
+ <script type="text/javascript">
+ <%= Ckeditor::Utils.js_fileuploader('image') %>
+ </script>
+</div>