diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2020-07-05 19:29:49 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2020-07-05 19:29:49 +0100 |
| commit | 66e4782c5c422b4f99a4763212bdc974efffc65b (patch) | |
| tree | 0c7f4c62a21c297808a9fd89339c117767453609 /src/main/resources/templates/lib.ftlh | |
| parent | 6f52bbd15bd7026b99433dfd30f5c74164b36b9d (diff) | |
| download | reddit-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.ftlh | 10 |
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> |