mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
Add link flairs
This commit is contained in:
@@ -23,6 +23,8 @@ html
|
||||
.title
|
||||
a(href="" + post.url + "")
|
||||
h2 #{cleanTitle(post.title)}
|
||||
if post.link_flair_text
|
||||
span(class="postflair") #{post.link_flair_text}
|
||||
span(class="domain") (#{post.domain})
|
||||
p.submitted
|
||||
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
|
||||
|
||||
@@ -84,10 +84,14 @@ html
|
||||
if link.is_self_link
|
||||
a(href="" + link.permalink + "")
|
||||
h2(class="" + (link.stickied ? 'green' : '') + "") #{cleanTitle(link.title)}
|
||||
if link.link_flair_text
|
||||
span(class="postflair") #{link.link_flair_text}
|
||||
span (#{link.domain})
|
||||
else
|
||||
a(href="" + link.url + "")
|
||||
h2(class="" + (link.stickied ? 'green' : '') + "") #{cleanTitle(link.title)}
|
||||
if link.link_flair_text
|
||||
span(class="postflair") #{link.link_flair_text}
|
||||
span (#{link.domain})
|
||||
.meta
|
||||
p.submitted submitted
|
||||
|
||||
Reference in New Issue
Block a user