2020-08-10 09:27:52 +02:00
|
|
|
{% include 'header.html' %}
|
2021-06-11 20:06:14 +02:00
|
|
|
|
2021-06-13 07:57:57 +02:00
|
|
|
|
|
|
|
{% block javascript %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
{% include "./js/filesaver.min.js" %}
|
|
|
|
{% include "./js/playlist.js" %}
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-06-11 20:06:14 +02:00
|
|
|
<div class="block md:flex justify-between items-center px-4 text-center border-b-2">
|
|
|
|
<div
|
|
|
|
class="m-2 block md:flex items-center justify-center md:justify-start text-2xl md:text-right font-bold text-blue-500">
|
|
|
|
<img class="mx-auto md:ml-0 md:mr-1 my-2 w-16 h-16 rounded-full bg-black outline-none" src="{{logo}}">
|
2021-06-13 13:01:23 +02:00
|
|
|
<a href="javascript:window.location.href=window.location.href"> {{name}} </a>
|
2021-06-11 20:06:14 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="m-2">
|
|
|
|
<form class="">
|
2021-06-13 07:57:57 +02:00
|
|
|
|
|
|
|
<div class="p-0">
|
2021-06-22 07:30:57 +02:00
|
|
|
<div class="bg-white flex items-center rounded-full shadow">
|
|
|
|
<input class="rounded-l-full w-full py-1 px-6 text-gray-700 dark:text-black leading-tight focus:outline-none"
|
2021-06-13 07:57:57 +02:00
|
|
|
name="search" id="search" value="{% if search %}{{search}}{% endif %}" type="text"
|
|
|
|
placeholder="Search">
|
|
|
|
<div class="p-1">
|
|
|
|
<button
|
|
|
|
class="bg-blue-500 text-white rounded-full p-2 hover:bg-blue-400 focus:outline-none w-12 h-12 flex items-center justify-center">
|
|
|
|
<div><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
|
|
|
|
stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
|
|
|
</svg></div>
|
2021-06-11 20:06:14 +02:00
|
|
|
</button>
|
2020-09-03 15:12:23 +02:00
|
|
|
</div>
|
2021-06-13 07:57:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-11 20:06:14 +02:00
|
|
|
|
2021-06-13 07:57:57 +02:00
|
|
|
</form>
|
2021-06-11 20:06:14 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if item_list %}
|
|
|
|
|
2021-06-13 07:57:57 +02:00
|
|
|
<div class="mx-auto my-2 w-full px-4 ">
|
2021-06-22 07:30:57 +02:00
|
|
|
<div class="block md:flex md:flex-wrap md:justify-center text-center break-all ">
|
2021-06-11 20:06:14 +02:00
|
|
|
{% for item in item_list %}
|
|
|
|
|
2021-06-13 07:57:57 +02:00
|
|
|
<!-- Card -->
|
2021-06-11 20:06:14 +02:00
|
|
|
<div title="{% if item.media %} {{item.mime_type}} | {{item.human_size}} {% else %} Text message {% endif %}"
|
|
|
|
href="{{item.url}}"
|
2021-06-22 07:30:57 +02:00
|
|
|
class="text-sm flex flex-col items-center justify-center w-full min-h-full md:w-1/5 lg:w-1/6 rounded my-4 md:mx-1 shadow hover:shadow-md border-solid dark:bg-red-500">
|
2021-06-11 20:06:14 +02:00
|
|
|
|
|
|
|
{% if item.media %}
|
|
|
|
|
2021-06-13 13:01:23 +02:00
|
|
|
<a href="{{item.url}}"><img src="{{item.thumbnail}}" class="w-full rounded shadow-inner"></a>
|
|
|
|
|
|
|
|
<!-- Buttons container -->
|
|
|
|
<span class="item-buttons my-1 rounded shadow-inner">
|
|
|
|
|
|
|
|
<div class="p-4 text-dark py-0 px-2 my-1 ">{{item.insight}}</div>
|
|
|
|
|
|
|
|
{% if not block_downloads %}
|
|
|
|
<!-- Direct file download button -->
|
|
|
|
<a href="{{item.download}}"
|
|
|
|
class=" hover:bg-blue-300 text-gray-900 font-semibold py-1 px-2 rounded inline-flex items-center">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
|
|
|
|
stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M15 13l-3 3m0 0l-3-3m3 3V8m0 13a9 9 0 110-18 9 9 0 010 18z" />
|
|
|
|
</svg>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% if 'video' in item.mime_type %}
|
|
|
|
<!-- Kodi/media player supported url ending with v.mp4 -->
|
|
|
|
<a title="v.mp4" href="{{item.download}}"
|
|
|
|
class=" hover:bg-blue-300 text-gray-900 font-semibold py-1 px-2 rounded inline-flex items-center">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
|
|
|
|
stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
|
|
</svg>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- One click single item playlist Download -->
|
|
|
|
<button title="{{item.filename}}.m3u" onclick="singleItemPlaylist('{{item.download}}','{{item.filename}}', '{{m3u_option}}');"
|
|
|
|
class=" hover:bg-blue-300 text-gray-900 font-semibold py-1 px-2 rounded inline-flex items-center">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
|
|
|
|
stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M3 4h13M3 8h9m-9 4h9m5-4v12m0 0l-4-4m4 4l4-4" />
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</span>
|
2021-06-13 07:57:57 +02:00
|
|
|
|
2020-09-03 15:12:23 +02:00
|
|
|
{% else %}
|
2021-06-11 20:06:14 +02:00
|
|
|
<a href={{item.url}}>
|
2021-06-13 07:57:57 +02:00
|
|
|
<div class="p-4 rounded shadow-inner rounded text-dark py-0 px-2">{{item.insight}}</div>
|
2021-06-11 20:06:14 +02:00
|
|
|
</a>
|
2020-09-03 15:12:23 +02:00
|
|
|
{% endif %}
|
2021-06-13 13:01:23 +02:00
|
|
|
<div class="bg-blue-500 rounded text-white my-1 py-0 px-1">{{item.file_id}}</div>
|
2020-08-15 09:13:46 +02:00
|
|
|
|
2021-06-11 20:06:14 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="my-2 text-center font-semibold">
|
|
|
|
{{item_list|length}} items
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="mx-auto my-2 text-center flex text-white content-center justify-center">
|
|
|
|
{% if prev_page %}
|
|
|
|
<a title="Previous page"
|
|
|
|
class="mx-2 p-2 border rounded bg-green-500 hover:border-green-500 hover:text-green-500 hover:bg-white"
|
|
|
|
href="{{prev_page.url}}">Page {{prev_page.no}}</a>
|
|
|
|
{% endif %}
|
|
|
|
<p
|
|
|
|
class="mx-2 p-2 border rounded border-green-500 text-green-500 hover:border-green-500 hover:text-green-500 hover:bg-white">
|
|
|
|
Page {{cur_page}}</p>
|
|
|
|
{% if next_page %}
|
|
|
|
<a title="Next page"
|
|
|
|
class="mx-2 p-2 border rounded bg-green-500 hover:border-green-500 hover:text-green-500 hover:bg-white"
|
|
|
|
href="{{next_page.url}}">Page {{next_page.no}}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<p class="my-4 text-center text-2xl md:text-3xl lg:text-4xl xl:text-5xl">
|
|
|
|
No message to display!
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% include 'footer.html' %}
|