diff --git a/files/templates/submission.html b/files/templates/submission.html index be6d59b4b..c866dab51 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -184,72 +184,62 @@ {% if not v_forbid_deleted %}
- {% if p.realurl(v) %} - {% if not p.embed_url and not p.is_image %} - -
- {{p.realurl(v)}} - -
-
- {% endif %} - {% endif %} - - - {% if p.embed_url %} - {% if p.domain == "twitter.com" %} - {{p.embed_url | safe}} - {% if v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} - - {% else %} - + {% if not v_forbid_deleted %} + {% if p.realurl(v) %} + {% if not p.embed_url and not p.is_image %} + +
+ {{p.realurl(v)}} + +
+
+ {% endif %} + {% endif %} + + {% if p.embed_url %} + {% if p.domain == "twitter.com" %} + {{p.embed_url | safe}} + {% if v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} + + {% else %} + + {% endif %} + {% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith(' - {% if p.is_image %} -
-
- - Unable to load image - + {% if not v_forbid_deleted %} + {% if p.is_image %} +
+
+ + Unable to load image + +
-
- {% elif p.is_video %} -
-
- + {% elif p.is_video %} +
+
+ +
-
- {% elif p.is_audio %} -
-
- + {% elif p.is_audio %} +
+
+ +
-
+ {% endif %} {% endif %} {{p.realbody(v) | safe}} - - {% if p.is_banned and p.ban_reason %} -
removed by @{{p.ban_reason}} (Admin)
- {% endif %} - -
-
- {% else %} -
-
- {{p.realbody(v) | safe}} {% if p.is_banned and p.ban_reason %}
removed by @{{p.ban_reason}} (Admin)
{% endif %}
- {% endif %} {% if v and (v.id==p.author_id and not v.is_suspended) or v.admin_level >= PERMS['POST_EDITING'] %}