app/views/ckeditor/attachment_files/index.html.erb in ckeditor-4.0.7 vs app/views/ckeditor/attachment_files/index.html.erb in ckeditor-4.0.8

- old
+ new

@@ -4,12 +4,18 @@ <%= 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 => @attachments %> + <%= render :partial => 'ckeditor/shared/asset', :collection => @attachments.scoped %> </div> -</div> -<script type="text/javascript"> - <%= Ckeditor::Utils.js_fileuploader('attachments') %> -</script> + <% unless @attachments.last_page? %> + <div class="pagination"> + <%= link_to I18n.t("ckeditor.buttons.next"), params.merge(:page => @attachments.next_page), :class => "next", :rel => "next" %> + </div> + <% end -%> + + <script type="text/javascript"> + <%= Ckeditor::Utils.js_fileuploader('attachments') %> + </script> +</div>