Merge pull request 'Add 'open in reddit.com' button' (#393) from ppsn/teddit:reddit-com-link into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/393
This commit is contained in:
teddit 2023-04-05 20:12:10 +00:00
commit f73b9c2bea
2 changed files with 2 additions and 0 deletions

View File

@ -97,3 +97,4 @@
a(href="/unsave/" + link.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave
else
a(href="/save/" + link.id + "/?rk=" + redis_key + "&b=" + back_url + "") save
a(href=("https://www.reddit.com" + link.permalink) target="_blank" title="Open in Reddit (new tab)") [R↗]

View File

@ -87,6 +87,7 @@ html
a(href="/unsave/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") unsave
else
a(href="/save/" + post.id + "/?rk=" + redis_key + "&b=" + back_url + "") save
a(href=("https://www.reddit.com" + back_url) target="_blank" title="Open in Reddit (new tab)" style="margin-left: 10px") [R↗]
if post.crosspost.is_crosspost === true
.crosspost
.title