You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
791 B
21 lines
791 B
extends ../layouts/main
|
|
block content
|
|
|
|
h1 Attachments
|
|
|
|
if Array.isArray(attachments) && (attachments.length > 0)
|
|
ul.uk-list.uk-list-divider
|
|
each attachment in attachments
|
|
li
|
|
div(uk-grid).uk-grid-small.uk-flex-middle
|
|
.uk-width-expand
|
|
//- had to abort while writing the renderer for an attachment.
|
|
//- will be back to finish this and have an attachment browser/manager.
|
|
pre= JSON.stringify(attachment, null, 2)
|
|
|
|
.uk-width-auto
|
|
button(type="button", data-attachment-id= attachment._id, onclick="return dtp.adminApp.deleteAttachment(event);").uk-button.dtp-button-danger.uk-border-rounded
|
|
span
|
|
i.fas.fa-trash
|
|
else
|
|
div There are no attachments.
|