From b1a572072cc24bf7bbd762a4e660cae26db0a79b Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 21 Dec 2020 08:38:24 -0800 Subject: [PATCH] Highlight Post Authors in Comments --- src/post.rs | 2 +- src/subreddit.rs | 4 +++- static/style.css | 5 +++++ templates/base.html | 2 +- templates/post.html | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/post.rs b/src/post.rs index 5df1d60..92bd862 100644 --- a/src/post.rs +++ b/src/post.rs @@ -133,7 +133,7 @@ async fn parse_post(json: serde_json::Value) -> Result { } else { "white".to_string() }, - ) + ), }; Ok(post) diff --git a/src/subreddit.rs b/src/subreddit.rs index 201c3fe..013379a 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -33,7 +33,9 @@ pub async fn render(sub_name: String, sort: Option, ends: (Option{% block title %}Libreddit{% endblock %} + - {% endblock %} diff --git a/templates/post.html b/templates/post.html index 1173ba3..6ad23b6 100644 --- a/templates/post.html +++ b/templates/post.html @@ -13,7 +13,7 @@
- u/{{ item.author }} + u/{{ item.author }} {% if item.flair.0 != "" %} {{ item.flair.0 }} {% endif %}