|
|
@ -1,13 +1,17 @@ |
|
|
|
mixin renderPageSidebar ( ) |
|
|
|
mixin renderSidebarLink (link) |
|
|
|
form(method="POST", action=`/link/visit/${link._id}`).uk-form.uk-display-block.uk-width-1-1 |
|
|
|
button(type="submit").uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= link.label |
|
|
|
.uk-text-small.uk-text-center.uk-text-muted |
|
|
|
a(href=`/${link.user.username}`).uk-link-reset= link.user.displayName || link.user.username |
|
|
|
|
|
|
|
mixin renderPageSidebar ( ) |
|
|
|
.uk-margin |
|
|
|
+renderSectionTitle('Popular Links') |
|
|
|
if Array.isArray(popularLinks) && (popularLinks.length > 0) |
|
|
|
ul.uk-list |
|
|
|
each link in popularLinks |
|
|
|
li |
|
|
|
form(method="POST", action=`/link/visit/${link._id}`).uk-form.uk-display-block.uk-width-1-1 |
|
|
|
button(type="submit").uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= link.label |
|
|
|
+renderSidebarLink(link) |
|
|
|
else |
|
|
|
div No links available. Check back later. |
|
|
|
|
|
|
@ -17,8 +21,7 @@ mixin renderPageSidebar ( ) |
|
|
|
ul.uk-list |
|
|
|
each link in recentLinks |
|
|
|
li |
|
|
|
form(method="POST", action=`/link/visit/${link._id}`).uk-form.uk-display-block.uk-width-1-1 |
|
|
|
button(type="submit").uk-button.dtp-button-secondary.uk-display-block.uk-border-rounded.uk-width-1-1= link.label |
|
|
|
+renderSidebarLink(link) |
|
|
|
else |
|
|
|
div No new links. Check back later. |
|
|
|
|
|
|
|