XWIKI-13454: Add pagination for Attachments (#1349)
* used livetable for displaying attachments, like in AllAttachments page and reused macros of it * remove the redirect done after attachment upload * remove unused css * updated attachments page object * include missed office action and the new move action * add a new action for viewing the history of an attachment, to replace the version column which was overloading the view * add the possibility for external code to add attachment actions by using an ExtensionPoint * display user with avatar for inside the attachments livetable and the AllAttachments page * add a macro to be able to display a attachments livetable for a given document * update attachments.css and use this class for AllAttachments page as well, to not duplicate code * update updateCount to consider the case when we already know the number of attachments * fixed the delete button which was not working when the attachments livetable was used outside the docextra and update tests for it * add tests for filtering attachments and for checking filtering and delete action when multiple livetables are present on the page * add a fallback for when XWiki.AllAttachments page does not exists, to have other filter options, when possible * remove the, now unnecessary, # at the end of deleteURL * small fix, forgot to change #displayAttachmentSize method call for AllAttachments livetable as well * add workaround for tests until we move to livedata since the livetable filter will alter the fragment identifier and a page refresh will actually close the attachments tab
Showing
- xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-test/xwiki-platform-attachment-test-pageobjects/src/main/java/org/xwiki/attachment/test/po/AttachmentPane.java 6 additions, 16 deletions...ain/java/org/xwiki/attachment/test/po/AttachmentPane.java
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/pom.xml 7 additions, 0 deletions...mingo-skin/xwiki-platform-flamingo-skin-resources/pom.xml
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/attachment_macros.vm 199 additions, 92 deletions...esources/src/main/resources/flamingo/attachment_macros.vm
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/attachmentsinline.vm 5 additions, 3 deletions...esources/src/main/resources/flamingo/attachmentsinline.vm
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/attachmentsjson.vm 120 additions, 0 deletions...-resources/src/main/resources/flamingo/attachmentsjson.vm
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/attachmentslist.vm 1 addition, 7 deletions...-resources/src/main/resources/flamingo/attachmentslist.vm
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/docextra.vm 2 additions, 0 deletions...go-skin-resources/src/main/resources/flamingo/docextra.vm
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java 145 additions, 4 deletions.../test/it/org/xwiki/flamingo/test/docker/AttachmentIT.java
- xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/resources/AttachmentIT/SmallSizeAttachment.png 0 additions, 0 deletions...r/src/test/resources/AttachmentIT/SmallSizeAttachment.png
- xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/AllAttachments.xml 1 addition, 127 deletions...form-index-ui/src/main/resources/XWiki/AllAttachments.xml
- xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-ui/src/main/resources/XWiki/AllAttachmentsResults.xml 3 additions, 96 deletions...dex-ui/src/main/resources/XWiki/AllAttachmentsResults.xml
- xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties 11 additions, 2 deletions...ldcore/src/main/resources/ApplicationResources.properties
- xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/AttachmentsPane.java 184 additions, 43 deletions...i/src/main/java/org/xwiki/test/ui/po/AttachmentsPane.java
- xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/po/LiveTableElement.java 7 additions, 4 deletions.../src/main/java/org/xwiki/test/ui/po/LiveTableElement.java
- xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/viewers/attachments.css 14 additions, 73 deletions...rc/main/webapp/resources/js/xwiki/viewers/attachments.css
- xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/viewers/attachments.js 56 additions, 23 deletions...src/main/webapp/resources/js/xwiki/viewers/attachments.js
Loading
Please register or sign in to comment