mirror of
				https://gitlab.com/brutaldon/brutaldon
				synced 2025-06-05 21:49:32 +02:00 
			
		
		
		
	Rudimentary media display support
This commit is contained in:
		| @@ -19,6 +19,23 @@ | ||||
|                     <br> | ||||
|                     {{ toot.content | safe }} | ||||
|                 </p> | ||||
|                 {% if toot.media_attachments %} | ||||
|                     <div class="level"> | ||||
|                         <div class="level-left"> | ||||
|                     {% for media in toot.media_attachments %} | ||||
|                         <a class="level-item" href="{{ media.url }}"> | ||||
|                             <img src="{{ media.preview_url }}" alt=" | ||||
|                                       {% if media.text_url  %} | ||||
|                                       {{ media.text_url }} | ||||
|                                       {% else %} | ||||
|                                       {{ media.url  }} | ||||
|                                       {% endif %}" | ||||
|                                  class="image is-128x128"> | ||||
|                         </a> | ||||
|                     {% endfor %} | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 {% endif %} | ||||
|             </div> | ||||
|             <nav class="level is-mobile"> | ||||
|                 <div class="level-left"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user