TelegramIndex-Fork/app/templates/index.html

60 lines
3.2 KiB
HTML
Raw Normal View History

2020-08-10 09:27:52 +02:00
{% include 'header.html' %}
2020-08-12 12:39:29 +02:00
2020-08-13 16:16:59 +02:00
<div class="block md:flex justify-between items-center px-4 text-center">
<div class="my-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" src="{{logo}}">
2020-08-12 12:39:29 +02:00
<h1> {{name}} </h1>
</div>
<div class="my-2">
<form class="">
<input class="border rounded p-2 border-indigo-500 placeholder-indigo-500 text-indigo-500" type="text" name="search" value="{% if search %}{{search}}{% endif %}" placeholder="search...">
<button class="border rounded p-2 border-indigo-500 bg-indigo-500 text-white hover:text-indigo-500 hover:bg-white" type="submit">Search</button>
</form>
</div>
</div>
2020-08-10 09:27:52 +02:00
<div class="mx-auto my-2 w-full overflow-x-auto px-4 text-xs">
<table class="m-auto rounded text-left shadow-md w-full">
<tr class="border-t border-b bg-gray-200 border-gray-300 my-2 p-4">
<th class="my-2 p-2">FileId</th>
<th class="my-2 p-2">Media</th>
<th class="my-2 p-2">Type</th>
<th class="my-2 p-2">Description</th>
<th class="my-2 p-2">Date</th>
<th class="my-2 p-2">Size</th>
</tr>
{% for item in item_list %}
<tr class="border-t border-b border-gray-300 my-2 p-4 rounded hover:bg-blue-100">
<th class="my-2 p-2">{{item.file_id}}</th>
<th class="my-2 p-2">{{item.media}}</th>
<th class="my-2 p-2">{{item.mime_type}}</th>
2020-08-12 12:39:29 +02:00
<th class="my-2 p-2 rounded hover:text-blue-600"><a href="{{item.url}}">{{item.insight}}</a></th>
2020-08-10 09:27:52 +02:00
<th class="my-2 p-2">{{item.date}}</th>
<th class="my-2 p-2">{{item.size}}</th>
</tr>
{% endfor %}
</table>
</div>
2020-08-11 09:06:30 +02:00
<p class="my-2 text-center font-semibold">
{{item_list|length}} results
</p>
2020-08-10 09:27:52 +02:00
<div class="mx-auto my-2 text-center flex text-white content-center justify-center">
{% if prev_page %}
<a 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 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>
2020-08-11 09:06:30 +02:00
{% include 'footer.html' %}