diff options
Diffstat (limited to 'src/views/post.pug')
-rw-r--r-- | src/views/post.pug | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/views/post.pug b/src/views/post.pug index 183f33f..960ad53 100644 --- a/src/views/post.pug +++ b/src/views/post.pug | |||
@@ -7,8 +7,8 @@ mixin post(p) | |||
7 | != p.title | 7 | != p.title |
8 | span.domain (#{p.domain}) | 8 | span.domain (#{p.domain}) |
9 | div.info-container | 9 | div.info-container |
10 | div.info-item by u/#{p.author} | ||
11 | div.info-item ↑ #{fmtnum(p.ups)} | 10 | div.info-item ↑ #{fmtnum(p.ups)} |
11 | div.info-item by u/#{p.author} | ||
12 | div.info-item | 12 | div.info-item |
13 | a(href=`/r/${p.subreddit}`) r/#{p.subreddit} | 13 | a(href=`/r/${p.subreddit}`) r/#{p.subreddit} |
14 | div.info-item | 14 | div.info-item |
@@ -18,5 +18,8 @@ mixin post(p) | |||
18 | if p.thumbnail && p.thumbnail != "self" || p.thumbnail != "default" | 18 | if p.thumbnail && p.thumbnail != "self" || p.thumbnail != "default" |
19 | a(href=p.url) | 19 | a(href=p.url) |
20 | img(src=p.thumbnail width='100px') | 20 | img(src=p.thumbnail width='100px') |
21 | else if p.post_hint == "hosted:video" | 21 | else if p.post_hint == "hosted:video" |
22 | video(src=p.secure_media.reddit_video.scrubber_media_url width='100px') | 22 | - var url = p.secure_media.reddit_video.fallback_url |
23 | a(href=url) | ||
24 | video(src=url height='100px') | ||
25 | |||