From e95e9256ce261d543d3275595bf37884a6e1f543 Mon Sep 17 00:00:00 2001 From: 674Y3r <87250374+674Y3r@users.noreply.github.com> Date: Fri, 7 Jan 2022 21:05:53 +0100 Subject: [PATCH] Highlight mod and admin usernames in posts Works like on reddit + shows highlight for mods on the search page. --- templates/post.html | 2 +- templates/utils.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post.html b/templates/post.html index db8e083..add5881 100644 --- a/templates/post.html +++ b/templates/post.html @@ -37,7 +37,7 @@

r/{{ post.community }} - u/{{ post.author.name }} + u/{{ post.author.name }} {% if post.author.flair.flair_parts.len() > 0 %} {% call utils::render_flair(post.author.flair.flair_parts) %} {% endif %} diff --git a/templates/utils.html b/templates/utils.html index 81a4bd4..a11583f 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -72,7 +72,7 @@ {% endif -%} {{ community }} - u/{{ post.author.name }} + u/{{ post.author.name }} {{ post.rel_time }} {% if !post.awards.is_empty() %}