aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/lib.ftlh
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2020-07-05 19:29:49 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2020-07-05 19:29:49 +0100
commit66e4782c5c422b4f99a4763212bdc974efffc65b (patch)
tree0c7f4c62a21c297808a9fd89339c117767453609 /src/main/resources/templates/lib.ftlh
parent6f52bbd15bd7026b99433dfd30f5c74164b36b9d (diff)
downloadreddit-lite-66e4782c5c422b4f99a4763212bdc974efffc65b.tar.xz
reddit-lite-66e4782c5c422b4f99a4763212bdc974efffc65b.zip
Add dark theme. Improve display of multi-reddits. Add NetPositive inspired error pages
Diffstat (limited to 'src/main/resources/templates/lib.ftlh')
-rw-r--r--src/main/resources/templates/lib.ftlh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/resources/templates/lib.ftlh b/src/main/resources/templates/lib.ftlh
index 9b9e96b..ee013a4 100644
--- a/src/main/resources/templates/lib.ftlh
+++ b/src/main/resources/templates/lib.ftlh
@@ -13,7 +13,15 @@
<#macro header subreddit>
<div class="header">
- <a class="subreddit-title" href="/r/${subreddit}">/r/${subreddit}</a>
+ <a class="subreddit-title" href="/r/${subreddit}">
+ <#if subreddit?contains("+")>
+ <#list subreddit?split("+") as multiRedditName>
+ <#if multiRedditName?is_first>/r/<#else>+</#if>${multiRedditName}
+ </#list>
+ <#else>
+ /r/${subreddit}
+ </#if>
+ </a>
<span class="header-links">
<#nested>
</span>