From 3ddeba7e8d930993e64992005b306f146d4c2a76 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 23 Nov 2022 00:05:31 +0200 Subject: [PATCH] disable user.newtab for PWA users --- files/templates/admin/apps.html | 2 +- files/templates/comments.html | 6 +++--- files/templates/popover.html | 2 +- files/templates/submission.html | 6 +++--- files/templates/submission_listing.html | 10 +++++----- files/templates/submit.html | 2 +- files/templates/util/html_head.html | 9 +++++++++ files/templates/util/macros.html | 2 +- 8 files changed, 24 insertions(+), 15 deletions(-) diff --git a/files/templates/admin/apps.html b/files/templates/admin/apps.html index 6c0255931..a6ded0fee 100644 --- a/files/templates/admin/apps.html +++ b/files/templates/admin/apps.html @@ -8,7 +8,7 @@
diff --git a/files/templates/comments.html b/files/templates/comments.html index cb5c52061..bf3ad23e0 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -88,7 +88,7 @@ {% endif %} {% if c.post.sub %} - in /h/{{c.post.sub}} + in /h/{{c.post.sub}} {% endif %} {% elif c.author_id==AUTOJANNY_ID %} Notification @@ -291,7 +291,7 @@
- +
{% endif %}
@@ -540,7 +540,7 @@
- +
diff --git a/files/templates/popover.html b/files/templates/popover.html index aea1c14e8..f99a9a29c 100644 --- a/files/templates/popover.html +++ b/files/templates/popover.html @@ -38,7 +38,7 @@ coins - + View diff --git a/files/templates/submission.html b/files/templates/submission.html index 4e54c5811..a489f3343 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -206,7 +206,7 @@
- +
{% endif %} @@ -225,7 +225,7 @@
{% else %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index ea2e95d70..a406159e6 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -82,7 +82,7 @@ {% if p.club and not (v and (v.paid_dues or v.id == p.author_id)) %} post thumbnail {% elif not p.url %} - + post thumbnail {% elif p.is_image %} @@ -117,7 +117,7 @@
- + {% if p.club %}{{CC}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} @@ -131,7 +131,7 @@ {% if p.realbody(v, listing=True) %} {% endif %} - + {{p.comment_count}} @@ -143,7 +143,7 @@
  • - + {{p.comment_count}} @@ -246,7 +246,7 @@ {% if p.is_image and not p.over_18 and ((v and v.cardview) or (not v and CARD_VIEW)) %} diff --git a/files/templates/submit.html b/files/templates/submit.html index 9a24cc20e..88298f243 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -64,7 +64,7 @@
    - +
    diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 4ef53c5b1..27e5ba4d1 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -11,6 +11,15 @@ {% macro javascript() %} + + {% endmacro %} {% macro page_meta(title=none) %} diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 20990b206..12c3740b2 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -103,7 +103,7 @@ {% endif %}  {{p.age_string}}   - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{% else %}text post{% endif %}) + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{% else %}text post{% endif %}) {% if p.edited_utc %} Edited {{p.edited_string}} {% endif %}