From b30373d409a8829ff72706e3857e9dee295fd65e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 27 Aug 2021 18:57:41 +0200 Subject: [PATCH] fdfd --- files/routes/settings.py | 5 ++++- files/templates/comments.html | 2 +- files/templates/submission.html | 2 +- files/templates/submission_listing.html | 2 +- files/templates/userpage.html | 4 ++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 0a617f189..cc620d70a 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -172,7 +172,10 @@ def settings_profile_post(v): if quadrant and "pcm" in request.host.lower(): v.quadrant = quadrant v.customtitle = quadrant - if quadrant=="LibLeft": + if quadrant=="Centrist": + v.namecolor = "7f8fa6" + v.titlecolor = "7f8fa6" + elif quadrant=="LibLeft": v.namecolor = "62ca56" v.titlecolor = "62ca56" elif quadrant=="LibRight": diff --git a/files/templates/comments.html b/files/templates/comments.html index f8e6759c0..b3420b07e 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -138,7 +138,7 @@ {% if c.author.verified %} {% endif %} - {{c.author.username}}{% if c.author.customtitle %}  {% if c.author.quadrant %}{% endif %}{{c.author.customtitle | safe}}{% endif %} + {{c.author.username}}{% if c.author.customtitle %}  {% if c.author.quadrant %}{% endif %}{{c.author.customtitle | safe}}{% endif %}  {{c.age_string}} {% if c.edited_utc %} diff --git a/files/templates/submission.html b/files/templates/submission.html index 8c2d0d9a5..d64180071 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -260,7 +260,7 @@ {% if p.active_flags %}{{p.active_flags}} Reports{% endif %} {% if p.author.verified %} {% endif %} - {{p.author.username}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{% endif %}{{p.author.customtitle | safe}}{% endif %} + {{p.author.username}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{% endif %}{{p.author.customtitle | safe}}{% endif %}  {{p.age_string}} ({% if p.realurl(v) %}{{p.domain}}{% else %}text post{% endif %}) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index a589deb7b..2a1177b7f 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -108,7 +108,7 @@ {% if p.active_flags %}{{p.active_flags}} Reports{% endif %} {% if p.author.verified %} {% endif %} - {{p.author.username}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{% endif %}{{p.author.customtitle | safe}}{% endif %} + {{p.author.username}}{% if p.author.customtitle %}  {% if p.author.quadrant %}{% endif %}{{p.author.customtitle | safe}}{% endif %}  {{p.age_string}}   ({% if p.realurl(v) %}{{p.domain}}{% else %}text post{% endif %}) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index bdf40f2ba..0722b5c15 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -152,7 +152,7 @@ - {% if u.customtitle %}

{% if u.quadrant %}{% endif %}{{u.customtitle | safe}}

{% endif %} + {% if u.customtitle %}

{% if u.quadrant %}{% endif %}{{u.customtitle | safe}}

{% endif %}
{{u.coins}} {{"COINS_NAME" | app_config}}   {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}   {% endif %}joined {{u.created_date}} @@ -370,7 +370,7 @@ {% if v and v.has_follower(u) and not v.is_nofollow %} Follows you {% endif %} - {% if u.customtitle %}

{% if u.quadrant %}{% endif %}{{u.customtitle | safe}}

{% endif %} + {% if u.customtitle %}

{% if u.quadrant %}{% endif %}{{u.customtitle | safe}}

{% endif %}
{{u.coins}} {{"COINS_NAME" | app_config}}  {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}   {% endif %}
joined {{u.created_date}}