diff --git a/files/templates/submission.html b/files/templates/submission.html index b812242248..871d60ea6e 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -306,7 +306,362 @@ {% endif %} -{% endblock %} +
+ +
+
+ + {% 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.embed_url %} + {% if p.domain == "twitter.com" %} + {{p.embed_url | safe}} + {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} + + {% else %} + + {% endif %} + + {% elif "youtu" in p.domain %} + {% if 'lite' in p.embed_url %} + {{p.embed_url | safe}} + {% else %} +
+ +
+ {% endif %} + {% endif %} + {% endif %} + + {% 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')) %} +
+
+ +
+
+ {% endif %} +
+ +
+ +
+
+ + {{ p.comment_count }} {{ 'Response' if p.comment_count == 1 else 'Responses' }} + + + {% if linked_comment and p.comment_count >= 2%} + + View entire thread + + {% endif %} +
+ +
+ + {% if v %} +
+ + {% include "/comments/CommentForm.html" %} +
+ {% endif %} + + {% if not v and not p.is_banned %} +
+ +
+ + +
+
+ {% endif %} + + {% if p.replies %} +
+ {% with comments=p.replies %} + {% include "comments.html" %} + {% endwith %} +
+ {% elif not p.replies and p.deleted_utc == 0 %} +
+ + + + +

Be the first to comment!

+ {% if v %} +

This comment section is a ghost town...

+ {% else %} +

This comment section is a ghost town. Sign in

+ {% endif %} +
+ {% endif %} + + {% if offset %} + + {% endif %} + +
+ + + + {% endblock %} {% block sidebar %} @@ -346,5 +701,34 @@ - + {% endblock %} \ No newline at end of file