remotes/1693045480750635534/spooky-22
Aevann1 2021-09-07 18:30:22 +02:00
parent f3b9b57c68
commit 1a3aaae445
1 changed files with 22 additions and 22 deletions

View File

@ -393,28 +393,28 @@
</div> </div>
{% endif %} {% endif %}
{% if not v or v.cardview %} {% if p.is_image and (not v or v.cardview) %}
{% if p.is_image %} <div style="text-align: center" class="mt-3 mb-4">
<div style="text-align: center" class="mt-3 mb-4"> <a target="_blank" rel="nofollow noopener noreferrer" href="{{p.url}}">
<a target="_blank" rel="nofollow noopener noreferrer" href="{{p.url}}"> <img loading="lazy" src="{{p.url}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
<img loading="lazy" src="{{p.url}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image"> </a>
</a> </div>
</div> {% endif %}
{% elif p.is_video %}
<div id="video-{{p.id}}" style="text-align: center" class="mt-4"> {% if p.is_video %}
<video controls preload="metadata" style="max-width: 100%"> <div id="video-{{p.id}}" style="{% if v and not v.cardview %}display:None;{% endif %} text-align: center" class="mt-4">
<source src="{{p.realurl(v)}}" type="video/mp4"> <video controls preload="metadata" style="max-width: 100%">
</video> <source src="{{p.realurl(v)}}" type="video/mp4">
</div> </video>
{% elif p.embed_url and "youtu" in p.domain %} </div>
<div id="video-{{p.id}}" style="text-align: center" class="mt-3 mb-4"> {% elif p.embed_url and "youtu" in p.domain %}
<iframe loading="lazy" src="{{p.embed_url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe> <div id="video-{{p.id}}" style="{% if v and not v.cardview %}display:None;{% endif %} text-align: center" class="mt-3 mb-4">
</div> <iframe loading="lazy" src="{{p.embed_url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe>
{% elif p.url and "streamable.com/e/" in p.url %} </div>
<div id="video-{{p.id}}" style="text-align: center" class="mt-3 mb-4"> {% elif p.url and "streamable.com/e/" in p.url %}
<iframe loading="lazy" src="{{p.url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe> <div id="video-{{p.id}}" style="{% if v and not v.cardview %}display:None;{% endif %} text-align: center" class="mt-3 mb-4">
</div> <iframe loading="lazy" src="{{p.url}}" frameborder="0" style="max-width: 100%" width="600" height="337" allow="fullscreen"></iframe>
{% endif %} </div>
{% endif %} {% endif %}
{% else %} {% else %}