Skip to content
Snippets Groups Projects
Unverified Commit 08190dd3 authored by Oana-Lavinia Florean's avatar Oana-Lavinia Florean Committed by GitHub
Browse files

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
parent 1154dfbf
No related branches found
No related tags found
Loading
Showing
with 761 additions and 490 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment