From c1662fd8c30f0a6b5871d8abd35e57bf1ecb02b1 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Fri, 10 Dec 2021 18:50:10 -0600 Subject: [PATCH] fix --- files/templates/submission.html | 229 +++++++++++++++++++++++++++++++- 1 file changed, 228 insertions(+), 1 deletion(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index 7ac4320a09..f154f8bc4c 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -308,7 +308,234 @@
- +
+
+ + {% if not p.is_image and p.thumb_url and not p.embed_url %} + + {% endif %} + +
+ +
+ + {% if p.active_flags %} + + {% endif %} + + +
+ +
+ {{ p.author.username }} avatar +
+ + {% if v and v.admin_level==6 and p.author.shadowbanned %} + + + {% endif %} + {% if p.distinguish_level %} + + {% endif %} + {% if p.is_bot %} + + {% endif %} + {% if p.author.verified %} + + {% endif %} + + + + {% if p.author.patron and not p.distinguish_level %} + + {{p.author.username}} + + {% elif p.distinguish_level and 'rama' in request.host %} + + {{p.author.username}} + + {% else %} + {{p.author.username}} + {% endif %} + + + + {% if p.author.customtitle %} + + {% if p.author.quadrant %} + + {% endif %} + {{p.author.customtitle | safe}} + + {% endif %} + + {{p.age_string}} + + {% if p.edited_utc %} + Edited + {{p.edited_string}} + {% endif %} + + {% if p.realurl(v) %} + ({{p.domain}}) + + {% else %} + (text post) + {% endif %} + + +
+ + +

+ {% if p.realurl(v) %} + + {{p.realtitle(v) | safe}} + + {% else %} + {{p.realtitle(v) | safe}} + {% endif %} +

+ + +
+ {% if p.realurl(v) %} + {% if "streamable.com/" in p.realurl(v) %} +
+

+						{% elif "spotify.com/" in p.realurl(v) %}
+						{% if "spotify.com/embed/" in p.realurl(v) %}
+						{% set streamurl=p.realurl(v) %}
+						{% else %}
+						{% set streamurl=p.realurl(v).replace("spotify.com", "spotify.com/embed") %}
+						{% endif %}
+						
+						

+
+						{% elif not p.embed_url and not p.is_image and not (p.url and p.url.lower().endswith('.mp4')) %}
+						
+							
+ {{p.domain|truncate(30, True)}} + +
+
+ {% endif %} + {% endif %} +
+ {% if p.is_image %} + + Unable to load image + + {% elif p.url and p.url.lower().endswith('.mp4') %} + + {% endif %} + + {{p.realbody(v) | safe}} + + {% for c in p.options %} +
+ + +
+ {% endfor %} + +
+ + + + {% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %} +
+ {{p.author.sig_html | safe}} + {% endif %} +
+ + {% if v and (v.id==p.author_id or v.admin_level==6 and v.id in [1,28,995,2513]) and not v.is_suspended %} +
+ {% include "/submission/SubmissionEditForm.html" %} +
+ {% endif %} + + {% if p.embed_url and "http" not in p.embed_url %} +
+
+
+
+ {{ p.embed_url | post_embed(v) | safe }} +
+
+
+
+ {% endif %} + +
+ + + + +
+ + + + +
+ +
+ {% include "/submission/SubmissionActionsMobile.html" %} +
+ +
{% if not p.is_image and not (p.url and p.url.lower().endswith('.mp4')) %}