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.
14 lines
680 B
14 lines
680 B
3 years ago
|
include item-metabar
|
||
|
mixin renderTermList (terms)
|
||
|
- var submitUrl = user ? '/term/submit' : '/welcome?src=submit';
|
||
|
if Array.isArray(terms) && (terms.length > 0)
|
||
|
ul.uk-list.uk-list-divider
|
||
|
each term in terms
|
||
|
li(data-term-id= term._id)
|
||
|
a(href=`/term/${term._id}`).uk-display-block.uk-link-reset.uk-margin-small
|
||
|
h4.uk-heading.uk-margin-remove= term.term
|
||
|
if term.definition && term.definition.content
|
||
|
.markdown-block!= anchorme(marked(term.definition.content))
|
||
|
+renderItemMetabar(term, 'term')
|
||
|
else
|
||
|
.uk-text-muted There are no terms at this time. #[a(href=submitUrl) Submit one] now to get started!
|