A web application allowing people to create an account, configure a profile, and share a list of URLs on that profile.
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.
 
 
 
 

26 lines
928 B

extends ../layouts/main
block content
include ../../components/pagination-bar
.uk-margin
if Array.isArray(links) && (links.length > 0)
ul.uk-list
each link in links
li(data-link-id= link._id)
div(uk-grid).uk-grid-small.uk-flex-middle
.uk-width-expand
div
span.uk-margin-small-right= link.label
span.uk-margin-small-right #[a(href= `/${link.user.username}`).uk-text-truncate= link.user.username]
a(href= link.href)= link.href
.uk-width-auto
form(method="POST", action=`/admin/link/${link._id}`, onsubmit="").uk-form
button(type="submit").uk-button.dtp-button-danger.uk-button-small
span
i.fas.fa-trash
else
div There are no links
.uk-margin
+renderPaginationBar('/admin/link', totalLinkCount)