diff --git a/files/classes/comment.py b/files/classes/comment.py index 3bae7836c..a2d9fba08 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -169,16 +169,10 @@ class Comment(Base): years = int(months / 12) return f"{years}yr ago" - if SITE_NAME == 'Too4You': - @property - @lazy - def score(self): - return self.upvotes - else: - @property - @lazy - def score(self): - return self.upvotes - self.downvotes + @property + @lazy + def score(self): + return self.upvotes - self.downvotes @property @lazy diff --git a/files/classes/submission.py b/files/classes/submission.py index 6c1eb9567..dcd10be6d 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -180,16 +180,10 @@ class Submission(Base): return str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(self.edited_utc))) - if SITE_NAME == 'Too4You': - @property - @lazy - def score(self): - return self.upvotes - else: - @property - @lazy - def score(self): - return self.upvotes - self.downvotes + @property + @lazy + def score(self): + return self.upvotes - self.downvotes @property @lazy diff --git a/files/helpers/const.py b/files/helpers/const.py index 96b7c1cd3..c9af1bcdb 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -230,7 +230,7 @@ else: PUSHER_ID = environ.get("PUSHER_ID", "").strip() PUSHER_KEY = environ.get("PUSHER_KEY", "").strip() DEFAULT_COLOR = environ.get("DEFAULT_COLOR", "fff").strip() -COLORS = {'ff66ac','805ad5','62ca56','38a169','80ffff','2a96f3','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58', DEFAULT_COLOR} +COLORS = {'ff66ac','805ad5','62ca56','38a169','80ffff','2a96f3','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58','8cdbe6', DEFAULT_COLOR} AWARDS = { "snow": { diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 0cbbc61c2..72b37ba34 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index 3c0860a38..63907c73e 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -7,8 +7,8 @@ {% if v %} - - + + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/log.html b/files/templates/log.html index 3fff571ad..27d950b2b 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,7 +6,7 @@ {% block content %} {% if v %} - + {% if v.agendaposter %} - + {% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html index cf9fb49bb..f2193e592 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -18,8 +18,8 @@ {% endblock %} - - + + diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html index 55697d612..0f79a8675 100644 --- a/files/templates/login_2fa.html +++ b/files/templates/login_2fa.html @@ -14,7 +14,7 @@ 2-Step Login - {{SITE_NAME}} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 76904917b..375ed4952 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -34,7 +34,7 @@ - + {% if v.agendaposter %} - + {% else %} - + {% endif %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 46c33e590..95704398b 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -31,7 +31,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %} - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 4c2ecd246..a9d51480c 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -32,7 +32,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %} - + diff --git a/files/templates/submit.html b/files/templates/submit.html index c3a3b81f5..1a34e1ff0 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -26,7 +26,7 @@ {% block stylesheets %} {% if v %} - + {% if v.agendaposter %} - - + + {% endif %} {% endblock %}