flask-htmx-board1/templates/board.html

50 lines
2.3 KiB
HTML
Raw Normal View History

2023-07-03 23:18:37 +10:00
{% extends "base.html" %}
{% block content %}
<div class="content">
2023-07-03 23:23:03 +10:00
<p>Вы тут: /{{board_id}}</p>
2023-07-03 23:18:37 +10:00
</div>
<nav>
2023-07-03 23:24:34 +10:00
<a href="/">glavnaya</a>
2023-07-03 23:18:37 +10:00
<br>
Доски:
<div class="boards">
<ul>
{% for board in boards %}
2023-07-03 23:19:54 +10:00
<li><a href="/boards/{{board}}">/{{board}}</a></li>
2023-07-03 23:18:37 +10:00
{% endfor %}
</ul>
</div>
</nav>
<table class="border-collapse w-small w-2/3 mx-auto">
<thead>
<tr>
2023-07-03 23:45:49 +10:00
<th class="p-3 font-bold uppercase bg-gray-200 text-gray-600 border border-gray-300 hidden lg:table-cell">номер треда</th>
<th class="p-3 font-bold uppercase bg-gray-200 text-gray-600 border border-gray-300 hidden lg:table-cell">номер поста</th>
<th class="p-3 font-bold uppercase bg-gray-200 text-gray-600 border border-gray-300 hidden lg:table-cell">автор(ка)</th>
<th class="p-3 font-bold uppercase bg-gray-200 text-gray-600 border border-gray-300 hidden lg:table-cell">пикча эта ваша</th>
<th class="p-3 font-bold uppercase bg-gray-200 text-gray-600 border border-gray-300 hidden lg:table-cell">текст</th>
2023-07-03 23:18:37 +10:00
</tr>
</thead>
<tbody id="thread-results">
2023-07-03 23:25:25 +10:00
{% for thread in board_threads %}
2023-07-03 23:22:11 +10:00
<tr class="bg-white lg:hover:bg-gray-100 flex lg:table-row flex-row lg:flex-row flex-wrap lg:flex-no-wrap mb-10 lg:mb-0">
2023-07-03 23:45:49 +10:00
<td class="w-full lg:w-auto p-3 text-gray-800 text-center border border-b block lg:table-cell relative lg:static">{{thread.thread_num}}</td>
<td class="w-full lg:w-auto p-3 text-gray-800 text-center border border-b block lg:table-cell relative lg:static">{{thread.post_num}}</td>
<td class="w-full lg:w-auto p-3 text-gray-800 text-center border border-b block lg:table-cell relative lg:static">{{thread.name}}</td>
<td class="w-full lg:w-auto p-3 text-gray-800 text-center border border-b block lg:table-cell relative lg:static">
<img src="https://static.vdk2ch.ru/thread-pics/{{thread.pic_link}}" alt="" width="200" height="200">
</td>
<td class="w-full lg:w-auto p-3 text-gray-800 text-center border border-b block lg:table-cell relative lg:static">{{thread.txt}}</td>
2023-07-03 23:22:11 +10:00
</tr>
{% endfor %}
2023-07-03 23:18:37 +10:00
</tbody>
</table>
{% endblock content %}