From cc6ad3ded44c6835c2d0c7d15829d13bd7b59915 Mon Sep 17 00:00:00 2001 From: mummified-corroding-granny Date: Mon, 13 Feb 2023 18:58:07 +0000 Subject: [PATCH] comments: changed display to inline block in more meta elements (#118) Kindly, This is follow-up work to https://fsdfsd.net/rDrama/rDrama/pulls/110 where I target post comments. This fixes element spliting for "Edited X ago", reply arrow + name and lottery icon + lottery message Thanks, granny Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/118 Co-authored-by: mummified-corroding-granny Co-committed-by: mummified-corroding-granny --- files/templates/comments.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 7ea66099b..761305c23 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -193,25 +193,31 @@ {% endif %} {% if c.notif_utc %} -  {{c.age_string}} +  {{c.age_string}} {% elif c.created_utc %} -  {{c.age_string}} +  {{c.age_string}} {% endif %} {% if c.edited_utc %} - · Edited {{c.edited_string}} + · Edited {{c.edited_string}} {% endif %} {% if c.treasure_amount and c.treasure_amount != '0' %} {% if c.treasure_amount.startswith('l') %} - treasure - Found {{c.treasure_amount.replace('l', '')}} Lottershe Tickets! + + treasure + Found {{c.treasure_amount.replace('l', '')}} Lottershe Tickets! + {% elif '-' in c.treasure_amount %} - treasure - A Mimic Ate {{c.treasure_amount.replace('-', '')}} Coins! + + treasure + A Mimic Ate {{c.treasure_amount.replace('-', '')}} Coins! + {% else %} - treasure - Found {{c.treasure_amount}} Coins! + + treasure + Found {{c.treasure_amount}} Coins! + {% endif %} {% endif %}