display vids in card view
parent
b503920699
commit
3b0094b6f5
|
@ -216,20 +216,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not v or v.cardview %}
|
{% if p.is_image and not (v and not v.cardview) %}
|
||||||
{% if p.is_image %}
|
|
||||||
<div style="text-align: center" class="mt-4">
|
<div style="text-align: center" class="mt-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>
|
||||||
{% elif p.is_video %}
|
{% elif p.is_video %}
|
||||||
<div style="text-align: center" class="mt-4">
|
<div style="text-align: center" class="mt-4">
|
||||||
<video controls preload="metadata" style="max-width: 100%">
|
<video controls preload="metadata" style="max-width: 100%">
|
||||||
<source src="{{ p.realurl(v) }}" type="video/mp4">
|
<source src="{{ p.realurl(v) }}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.realbody(v) %}
|
{% if p.realbody(v) %}
|
||||||
|
|
Loading…
Reference in New Issue