diff --git a/files/routes/posts.py b/files/routes/posts.py index 10dc4fde2..ae38d62b4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -400,7 +400,7 @@ def thumbnail_thread(pid): parsed_url = urlparse(post_url) return f"https://{parsed_url.netloc}{fragment_url}" else: - return f"{post_url}{'/' if not post_url.endswith('/')}{fragment_url}" + return f"{post_url}{'/' if not post_url.endswith('/') else ''}{fragment_url}" db = db_session() diff --git a/files/templates/admin/alt_votes.html b/files/templates/admin/alt_votes.html index 7d819d84e..04de672ca 100644 --- a/files/templates/admin/alt_votes.html +++ b/files/templates/admin/alt_votes.html @@ -15,8 +15,8 @@
- - + +
diff --git a/files/templates/login.html b/files/templates/login.html index e086dde0c..c1dc6cd5f 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -85,7 +85,7 @@
- Don't have an account? Sign up + Don't have an account? Sign up
diff --git a/files/templates/search.html b/files/templates/search.html index 5e87986e1..dcce70d68 100644 --- a/files/templates/search.html +++ b/files/templates/search.html @@ -3,7 +3,7 @@ {% block pagetype %}search{% endblock %} {% block title %} -Search for "{{query}}" - {{'SITE_NAME' | app_config}}" +Search for "{{query}}" - {{'SITE_NAME' | app_config}}" {% endblock %} {% block PseudoSubmitForm %}{% endblock %} @@ -71,7 +71,7 @@
Advanced search parameters (with examples): "author:quadnarca", "domain:reddit.com", "over18:true"

-
Showing {% block listinglength %}{{listing | length}}{% endblock %} of {{total}} result{{'s' if total != 1}} for
+
Showing {% block listinglength %}{{listing | length}}{% endblock %} of {{total}} result{{'s' if total != 1 else ''}} for

{{query}}

diff --git a/files/templates/settings_filters.html b/files/templates/settings_filters.html index e14d23535..88d58490f 100644 --- a/files/templates/settings_filters.html +++ b/files/templates/settings_filters.html @@ -24,7 +24,7 @@
@@ -49,7 +49,7 @@
@@ -68,7 +68,7 @@
@@ -87,7 +87,7 @@
diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 0f7752e1c..a7ba80800 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -281,7 +281,7 @@ - + {{v.referral_count}} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index a7edb1d59..d24db39df 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -134,7 +134,7 @@
- Already have an account? + Already have an account?
diff --git a/files/templates/submission_banned.html b/files/templates/submission_banned.html index b0cf807e5..509e39aa9 100644 --- a/files/templates/submission_banned.html +++ b/files/templates/submission_banned.html @@ -90,7 +90,7 @@
diff --git a/files/templates/userpage.html b/files/templates/userpage.html index c3f13d933..6054d5358 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -133,7 +133,7 @@ {{u.coins}}     - {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1}}   {% endif %} + {% 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}}
{% if "pcm" in request.host %}

Based Count: {{u.basedcount}}

{% endif %} @@ -389,7 +389,7 @@ {{u.coins}}     - {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1}}   {% endif %} + {% 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 %} {% if "pcm" in request.host %}
Based count: {{u.basedcount}} {% endif %} diff --git a/files/templates/votes.html b/files/templates/votes.html index 8906b97fb..b5652ba08 100644 --- a/files/templates/votes.html +++ b/files/templates/votes.html @@ -10,7 +10,7 @@
- +