From 2608b9ddeaa33e14ec24b09dcdb73acb91da751b Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 23 Apr 2018 22:01:37 -0400 Subject: [PATCH] Rudimentary media display support --- brutaldon/templates/main/timeline.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/brutaldon/templates/main/timeline.html b/brutaldon/templates/main/timeline.html index 415be17..501050f 100644 --- a/brutaldon/templates/main/timeline.html +++ b/brutaldon/templates/main/timeline.html @@ -19,6 +19,23 @@
{{ toot.content | safe }}

+ {% if toot.media_attachments %} +
+
+ {% for media in toot.media_attachments %} + + 
+                                      {% if media.text_url  %}
+                                      {{ media.text_url }}
+                                      {% else %}
+                                      {{ media.url  }}
+                                      {% endif %} + + {% endfor %} +
+
+ {% endif %}