2020-08-10 09:27:52 +02:00
|
|
|
{% include 'header.html' %}
|
|
|
|
|
|
|
|
<div class="p-4 space-y-8">
|
|
|
|
{% if found %}
|
|
|
|
{% if media %}
|
|
|
|
<h1 class="text-blue-500 text-center text-lg md:text-xl lg:text-2xl xl:text-3xl w-full break-all">
|
|
|
|
Download {{name}}
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div class="mx-auto w-full md:w-3/4 lg:w-2/5 p-2">
|
|
|
|
{% if media.image %}
|
2020-08-13 16:53:35 +02:00
|
|
|
<img class="mx-auto rounded" src="../{{id}}/thumbnail" alt="{{name}}">
|
2020-08-10 09:27:52 +02:00
|
|
|
{% elif media.video %}
|
2020-08-12 12:39:29 +02:00
|
|
|
<video id="my-video-player" class="mx-auto rounded" controls poster="../{{id}}/thumbnail">
|
2020-08-13 09:52:28 +02:00
|
|
|
<source src="../{{id}}/download" type="{{ media.type }}" />
|
2020-08-10 09:27:52 +02:00
|
|
|
</video>
|
|
|
|
{% elif media.audio %}
|
2020-08-12 12:39:29 +02:00
|
|
|
<audio class="mx-auto" controls autoplay muted src="../{{id}}/download" type="{{ media.type }}"></audio>
|
2020-08-10 09:27:52 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if caption %}
|
|
|
|
|
2020-08-16 08:43:30 +02:00
|
|
|
<div class="mx-auto mt-1">
|
2020-08-15 09:13:46 +02:00
|
|
|
<div class="flex justify-center text-gray-300 font-mono text-xs lg:text-sm xl:text-lg">
|
|
|
|
<p class="text-left w-full rounded p-4 bg-gray-900 shadow-lg"> {{ caption|safe }} </p>
|
|
|
|
</div>
|
|
|
|
{% if reply_btns %}
|
|
|
|
<div class="w-full block">
|
|
|
|
{% for row in reply_btns %}
|
|
|
|
<div class="flex justify-center">
|
|
|
|
{% for btn in row %}
|
2020-08-16 08:43:30 +02:00
|
|
|
<a class="p-2 m-1 flex-1 border rounded bg-white border-blue-500 text-center text-blue-500 hover:bg-blue-500 hover:text-white transition ease-in duration-150" href="{{ btn.url }}" target="_blank"> {{btn.text}} </a>
|
2020-08-15 09:13:46 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-08-10 09:27:52 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-center text-white text-sm md:text-base xl:text-2xl">
|
|
|
|
|
2020-08-12 12:39:29 +02:00
|
|
|
<a class="rounded p-3 bg-indigo-500 hover:bg-indigo-700 shadow-lg" href="../{{id}}/download">Download Now! ({{ size }})</a>
|
2020-08-10 09:27:52 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2020-08-15 09:13:46 +02:00
|
|
|
<div class="mx-auto flex flex-wrap justify-center w-full md:w-3/4 mt-1">
|
|
|
|
<div class="flex justify-center text-gray-300 font-mono text-xs lg:text-sm xl:text-lg break-all">
|
|
|
|
<p class="text-left rounded p-4 bg-gray-900 w-full shadow-lg"> {{ text|safe }} </p>
|
|
|
|
</div>
|
|
|
|
{% if reply_btns %}
|
|
|
|
<div class="w-full block">
|
|
|
|
{% for row in reply_btns %}
|
|
|
|
<div class="flex justify-center">
|
|
|
|
{% for btn in row %}
|
2020-08-16 08:43:30 +02:00
|
|
|
<a class="p-2 m-1 flex-1 border rounded bg-white border-blue-500 text-center text-blue-500 hover:bg-blue-500 hover:text-white transition ease-in duration-150" href="{{ btn.url }}" target="_blank"> {{btn.text}} </a>
|
2020-08-15 09:13:46 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-08-10 09:27:52 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<h1 class="text-blue-500 text-center text-2xl md:text-3xl lg:text-4xl xl:text-5xl">Ooops...</h1>
|
|
|
|
|
|
|
|
<p class="text-center text-sm md:text-base lg:text-xl xl:text-2xl font-semibold">
|
|
|
|
{{ reason }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var myFP = fluidPlayer(
|
|
|
|
'my-video-player',{
|
|
|
|
"layoutControls": {
|
|
|
|
"controlBar": {
|
|
|
|
"autoHideTimeout": 3,
|
|
|
|
"animated": true,
|
|
|
|
"autoHide": true
|
|
|
|
},
|
|
|
|
"logo": {
|
|
|
|
"imageUrl": null,
|
|
|
|
"position": "top left",
|
|
|
|
"clickUrl": null,
|
|
|
|
"opacity": 1
|
|
|
|
},
|
|
|
|
"htmlOnPauseBlock": {
|
|
|
|
"html": null,
|
|
|
|
"height": null,
|
|
|
|
"width": null
|
|
|
|
},
|
|
|
|
"autoPlay": false,
|
|
|
|
"mute": true,
|
|
|
|
"allowTheatre": true,
|
|
|
|
"playPauseAnimation": true,
|
|
|
|
"playbackRateEnabled": true,
|
|
|
|
"allowDownload": false,
|
|
|
|
"playButtonShowing": true,
|
|
|
|
"fillToContainer": true,
|
|
|
|
"posterImage": ""
|
|
|
|
},
|
|
|
|
"vastOptions": {
|
|
|
|
"adList": [],
|
|
|
|
"adCTAText": false,
|
|
|
|
"adCTATextPosition": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
</script>
|
|
|
|
|
2020-08-12 12:39:29 +02:00
|
|
|
{% include 'footer.html' %}
|