From bb40bc1c535e40ccdc981cd64a40b97c30cf7abe Mon Sep 17 00:00:00 2001 From: TLSM Date: Tue, 24 May 2022 23:37:25 -0400 Subject: [PATCH] User counter: move to sidebar, add flavor. After much debate, the user counter will remain in the top banner for all non-rDrama sites using the codebase, while on rDrama the journoid banner will remain there and the counter has been moved back to the sidebar. This partially reverts some recent commits. In addition to the sidebar move, the rDrama user counter now has random flavor text, much as reddit sidebars do, though ours is cooler because it can randomly select from a list. --- files/templates/header.html | 8 +++++++- files/templates/journoid_banner.html | 16 +++++++--------- files/templates/sidebar_rDrama.html | 27 +++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/files/templates/header.html b/files/templates/header.html index 64b1ea942..8402ee366 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -9,7 +9,13 @@ } - {% include "journoid_banner.html" %} +
+ {%- if SITE_NAME == 'rDrama' -%} + {% include "journoid_banner.html" %} + {%- else -%} + {{g.counter}} PEOPLE HERE NOW + {%- endif -%} +