diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/comments.pug | 3 | ||||
-rw-r--r-- | src/views/index.pug | 4 | ||||
-rw-r--r-- | src/views/sub-search.pug | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/views/comments.pug b/src/views/comments.pug index e9bd332..844dfcc 100644 --- a/src/views/comments.pug +++ b/src/views/comments.pug | |||
@@ -43,7 +43,8 @@ html | |||
43 | a(href=`/media/${item.url}`) | 43 | a(href=`/media/${item.url}`) |
44 | img(src=item.url loading="lazy") | 44 | img(src=item.url loading="lazy") |
45 | else if isPostImage(post) | 45 | else if isPostImage(post) |
46 | img(src=post.url).post-media | 46 | a(href=`/media/${post.url}`) |
47 | img(src=post.url).post-media | ||
47 | else if isPostVideo(post) | 48 | else if isPostVideo(post) |
48 | - var url = post.secure_media.reddit_video.dash_url | 49 | - var url = post.secure_media.reddit_video.dash_url |
49 | video(controls data-dashjs-player src=`${url}`).post-media | 50 | video(controls data-dashjs-player src=`${url}`).post-media |
diff --git a/src/views/index.pug b/src/views/index.pug index a3bcd84..ea730fb 100644 --- a/src/views/index.pug +++ b/src/views/index.pug | |||
@@ -25,9 +25,9 @@ html | |||
25 | else | 25 | else |
26 | button(onclick=`toggleSub('${subreddit}')` id=`thinger_${subreddit}`) subscribe | 26 | button(onclick=`toggleSub('${subreddit}')` id=`thinger_${subreddit}`) subscribe |
27 | if about && !isMulti | 27 | if about && !isMulti |
28 | p #{about.public_description} | 28 | div.about #{about.public_description} |
29 | else | 29 | else |
30 | p | 30 | div.about |
31 | | consider donating to | 31 | | consider donating to |
32 | a(href="https://donate.stripe.com/dR62bTaZH1295Da4gg") oppiliappan | 32 | a(href="https://donate.stripe.com/dR62bTaZH1295Da4gg") oppiliappan |
33 | |, author of readit | 33 | |, author of readit |
diff --git a/src/views/sub-search.pug b/src/views/sub-search.pug index da33214..bf0d402 100644 --- a/src/views/sub-search.pug +++ b/src/views/sub-search.pug | |||
@@ -11,7 +11,8 @@ html | |||
11 | div.hero | 11 | div.hero |
12 | h1 search subreddits | 12 | h1 search subreddits |
13 | form(action="/search" method="get").search-bar | 13 | form(action="/search" method="get").search-bar |
14 | input(type="text" name="q" placeholder="search subreddits (add +nsfw to include over-18 results)" required).search-input | 14 | - var prefill = original_query ?? ""; |
15 | input(type="text" name="q" placeholder="search subreddits (add +nsfw to include over-18 results)" value=prefill required).search-input | ||
15 | button(type="submit").search-button go | 16 | button(type="submit").search-button go |
16 | if message | 17 | if message |
17 | div.search-message | 18 | div.search-message |