From 78400d587ea5367d3424333913ff4f94ca3f1908 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 10 Apr 2020 13:34:23 +0100 Subject: Reimplement in Kotlin --- src/main/resources/templates/posts.ftlh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/resources/templates/posts.ftlh (limited to 'src/main/resources/templates/posts.ftlh') diff --git a/src/main/resources/templates/posts.ftlh b/src/main/resources/templates/posts.ftlh new file mode 100644 index 0000000..56dbd1b --- /dev/null +++ b/src/main/resources/templates/posts.ftlh @@ -0,0 +1,30 @@ +<#include 'lib.ftlh'> + +<@wrapper title="/r/${subreddit}"> + <#assign thumbnailUrlFragment>/r/${subreddit}?after=${postAfterId!}&showThumbs= + <@header subreddit> + <#if showThumbs> + hide thumbnails + <#else> + show thumbnails + + + +
    + <#list posts as post> +
  1. +
    + <#if showThumbs && !post.isSelfPost() && post.thumbnailUrl?has_content> + + + + + <@postSummary post/> +
    +
  2. + +
+ + next page > + + \ No newline at end of file -- cgit v1.2.3