forked from rDrama/rDrama
fix
parent
f18a8b47c2
commit
52220fc610
|
@ -356,23 +356,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="post-text" class="text-black {% if p.award_count("candycane") %}candycane{% endif %}">
|
<div id="post-text" class="text-black {% if p.award_count("candycane") %}candycane{% endif %}">
|
||||||
{% if p.is_image %}
|
{% if p.is_image %}
|
||||||
<div class="row no-gutters">
|
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
|
||||||
<div class="col">
|
<img loading="lazy" src="{{p.realurl(v)}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
|
||||||
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
|
</a>
|
||||||
<img loading="lazy" src="{{p.realurl(v)}}" class="img-fluid" style="max-height:500px;" alt="Unable to load image">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre></pre>
|
|
||||||
{% elif p.url and p.url.lower().endswith('.mp4') %}
|
{% elif p.url and p.url.lower().endswith('.mp4') %}
|
||||||
<div class="row no-gutters">
|
<video controls loop preload="metadata" style="max-width: 100%">
|
||||||
<div class="col">
|
<source src="{{ p.realurl(v) }}" type="video/mp4"/>
|
||||||
<video controls loop preload="metadata" style="max-width: 100%">
|
</video>
|
||||||
<source src="{{ p.realurl(v) }}" type="video/mp4"/>
|
|
||||||
</video>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre></pre>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{p.realbody(v) | safe}}
|
{{p.realbody(v) | safe}}
|
||||||
|
|
Loading…
Reference in New Issue