diff --git a/files/templates/post.html b/files/templates/post.html index 9dcce36311..fa00dc6078 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -92,79 +92,79 @@ {% if not v_forbid_deleted %} -
- {% if p.realurl(v) and not p.is_image and not p.is_video and not p.is_audio %} - -
- {{p.realurl(v)}} - -
-
- {% endif %} - {% if p.embed %} - {% if p.domain == "twitter.com" %} - {{p.embed | safe}} - {% if v and v.theme in LIGHT_THEMES %} - - {% else %} - - {% endif %} - {% elif p.domain in ['youtu.be','youtube.com'] and p.embed and p.embed.startswith(' +
+ {% if p.realurl(v) and not p.is_image and not p.is_video and not p.is_audio %} + +
+ {{p.realurl(v)}} + +
+
+ {% endif %} + + {% if p.embed %} + {% if p.domain == "twitter.com" %} {{p.embed | safe}} -

- {elif p.embed and "http" not in p.embed and "<" not in p.embed %} -
-
-
-
- {{p.embed | post_embed(v) | safe}} + {% if v and v.theme in LIGHT_THEMES %} + + {% else %} + + {% endif %} + {% elif p.domain in ['youtu.be','youtube.com'] and p.embed and p.embed.startswith(' + {{p.embed | safe}} +

+ {% else %} +
+
+
+
+ {{p.embed | post_embed(v) | safe}} +
-
- {% endif %} - {% endif %} - - -
- {% if p.is_image %} -
-
- - Unable to load image - -
-
- {% elif p.is_video %} -
-
-

- -

-
-
- {% elif p.is_audio %} -
-
- -
-
+ {% endif %} {% endif %} - {{p.realbody(v) | safe}} - {% if p.is_banned %} -
Removed by @{{p.ban_reason}} (Site Admin)
+
+ {% if p.is_image %} +
+
+ + Unable to load image + +
+
+ {% elif p.is_video %} +
+
+

+ +

+
+
+ {% elif p.is_audio %} +
+
+ +
+
+ {% endif %} + {{p.realbody(v) | safe}} + + {% if p.is_banned %} +
Removed by @{{p.ban_reason}} (Site Admin)
+ {% endif %} +
+ {% if not p.ghost %} + {{p.author.rendered_sig(v) | safe}} {% endif %}
- {% if not p.ghost %} - {{p.author.rendered_sig(v) | safe}} - {% endif %} -
{% else %} -
-
[Deleted by author.]
-
+
+
[Deleted by author.]
+
{% endif %} {% if v and v.can_edit(p) and not v.is_suspended %}