From 7a33ed343425030743a8e0fd8e3614d181d3b2ab Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 11 Jan 2021 17:38:35 -0800 Subject: [PATCH] Card thumbnails for users --- templates/subreddit.html | 2 +- templates/user.html | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/subreddit.html b/templates/subreddit.html index 7e46a46..fcfce7a 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -31,7 +31,7 @@
{% for post in posts %} {% if !(post.flags.nsfw && prefs.hide_nsfw == "on") %} -
+

{{ post.score }}

{% if post.flags.nsfw %}
NSFW
{% endif %} diff --git a/templates/user.html b/templates/user.html index e4e5f53..f1afd45 100644 --- a/templates/user.html +++ b/templates/user.html @@ -23,7 +23,7 @@ {% if post.flags.nsfw && prefs.hide_nsfw == "on" %} {% else if post.title != "Comment" %} -
+

{{ post.score }}

{% if post.flags.nsfw %}
NSFW
{% endif %} @@ -51,8 +51,10 @@ {% if prefs.layout == "card" && post.post_type == "image" %} - {% else if prefs.layout != "card" %} - + {% else if post.post_type == "link" %} + {{ post.domain }} + {% else if post.post_type != "self" %} + {{ post.post_type }} {% endif %}