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.
28 lines
1.0 KiB
28 lines
1.0 KiB
extends ../layouts/main
|
|
block content
|
|
|
|
div(uk-grid).uk-grid-small
|
|
.uk-width-expand
|
|
h1 Announcements
|
|
.uk-width-auto
|
|
a(href="/admin/announcement/create").uk-button.dtp-button-primary.uk-border-rounded
|
|
span
|
|
i.fas.fa-plus
|
|
span.uk-margin-small-left Create
|
|
|
|
if Array.isArray(announcements) && (announcements.length > 0)
|
|
ul.uk-list.uk-list-divider
|
|
each announcement in announcements
|
|
li
|
|
div(uk-grid).uk-grid-small.uk-flex-middle
|
|
.uk-width-expand
|
|
a(href=`/admin/announcement/${announcement._id}`)
|
|
span
|
|
i(class=`fas ${announcement.title.icon.class}`)
|
|
span.uk-margin-small-left= announcement.title.content
|
|
.uk-width-auto
|
|
button(type="button", data-announcement-id= announcement._id, onclick="return dtp.adminApp.deleteAnnouncement(event);").uk-button.dtp-button-danger.uk-border-rounded
|
|
span
|
|
i.fas.fa-trash
|
|
else
|
|
div There are no announcements.
|