•  
     
    story #12450 see a preview of document
Summary
Empty
see a preview of document
Empty

live mockup here: https://s.codepen.io/enalean/debug/XPWvLg

For now we only add:

  • primary button:
    • Actions are the same as activity story #12444 Table : action on click
    • link: follow the link
    • file: direct download it
    • wiki: redirect to the wiki url
    • empty: no action
    • embbedded: document is displayed in a page
      • page is in Burning parrot
      • routing to the page is done by vue router
      • /!\ be careful with purification. The contents of the embedded file is HTML and needs to be escaped
  • display the document data (Title, description, ...) and its metadata. A new REST route is needed:
docman_items/:id {
id, title, description, type, uri, html_url, metadata ...
}
  • unlike mockup, "update", "delete" and dropdown buttons are not available in this step.
  • Preview only deals with embedded documents and image documents. All other documents are represented by an icon.

 

Empty
Empty
Status
Done
Development
Empty
Empty
Details
#12450
Marie Ange Garnier (marieange)
2019-02-26 16:50
2018-10-26 15:41
3381

References

List of items referenced by or referencing this item.

Git commit

Follow-ups