diff options
Diffstat (limited to 'src/mixins/post.pug')
-rw-r--r-- | src/mixins/post.pug | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug index 6dbebec..006193f 100644 --- a/src/mixins/post.pug +++ b/src/mixins/post.pug | |||
@@ -7,13 +7,6 @@ mixin post(p) | |||
7 | a(href=`/comments/${p.id}`) | 7 | a(href=`/comments/${p.id}`) |
8 | != p.title | 8 | != p.title |
9 | span.domain (#{p.domain}) | 9 | span.domain (#{p.domain}) |
10 | div.info-container | ||
11 | div.info-item ↑ #{fmtnum(p.ups)} | ||
12 | div.info-item by u/#{p.author} | ||
13 | div.info-item | ||
14 | a(href=`/r/${p.subreddit}`) r/#{p.subreddit} | ||
15 | div.info-item | ||
16 | a(href=`/comments/${p.id}`) #{fmtnum (p.num_comments)} #{fmttxt(p.num_comments, 'comment')} | ||
17 | div.media-preview | 10 | div.media-preview |
18 | if p.is_gallery && p.is_gallery == true | 11 | if p.is_gallery && p.is_gallery == true |
19 | if p.gallery_data | 12 | if p.gallery_data |
@@ -27,6 +20,17 @@ mixin post(p) | |||
27 | else if p.post_hint == "hosted:video" | 20 | else if p.post_hint == "hosted:video" |
28 | - var url = p.secure_media.reddit_video.dash_url | 21 | - var url = p.secure_media.reddit_video.dash_url |
29 | video(src=url data-dashjs-player width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) | 22 | video(src=url data-dashjs-player width='100px' height='100px' onclick=`toggleDetails('${p.id}')`) |
23 | div.info-container | ||
24 | p | ||
25 | | ↑ #{fmtnum(p.ups)} | ||
26 | | · | ||
27 | | 💬 | ||
28 | a(href=`/comments/${p.id}`) #{fmtnum (p.num_comments)} | ||
29 | | · | ||
30 | a(href=`/r/${p.subreddit}`) r/#{p.subreddit} | ||
31 | span.post-author | ||
32 | | · | ||
33 | by u/#{p.author} | ||
30 | 34 | ||
31 | if p.is_gallery && p.is_gallery == true | 35 | if p.is_gallery && p.is_gallery == true |
32 | if p.gallery_data | 36 | if p.gallery_data |