now we counting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-13 01:05:54 +10:00
parent 0118b859d1
commit 6c4235bed1
2 changed files with 10 additions and 41 deletions

12
app.py
View File

@ -48,8 +48,7 @@ def homepage():
docker_short_id = socket.gethostname()
return render_template("main-page.html", host_id=docker_short_id, boards=board_list)
### stolen
@app.route("/boards/<board_id>")
def page_board(board_id):
@ -57,6 +56,15 @@ def page_board(board_id):
return render_template("board.html", board_id=board_id, boards=board_list, board_threads=b_threads)
@app.route('/post_my_post', method=['POST'])
def post_a_post():
pass
@app.route('/post_my_file', method=['POST'])
def post_a_file():
pass
### stolen
@app.route("/todo")
def page_todo():

View File

@ -20,45 +20,6 @@
</div>
</nav>
<!--
<table class="pure-table-odd">
<thead>
<tr>
<th class="">пикча эта ваша</th>
<th class="">номер треда</th>
<th class="">номер поста</th>
<th class="">автор(ка)</th>
<th class="">текст</th>
</tr>
</thead>
<tbody id="thread-results">
{% for thread in board_threads %}
<tr class="">
<td class="">
<a href="https://static.vdk2ch.ru/thread-pics/{{thread.pic_links}}" target=”_blank”>
<svg viewBox="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="img-{{thread.post_num}}" patternUnits="userSpaceOnUse" width="100" height="100">
<image xlink:href="https://static.vdk2ch.ru/thread-pics/{{thread.pic_links}}" x="-25" width="150" height="100" />
</pattern>
</defs>
<polygon points="50 1 95 25 95 75 50 99 5 75 5 25" fill="url(#img-{{thread.post_num}})"/>
</svg>
</a>
<img src="https://static.vdk2ch.ru/thread-pics/{{thread.pic_links}}" alt="" width="200" height="200">
</td>
<td class="">{{thread.thread_num}}</td>
<td class="">{{thread.post_num}}</td>
<td class="">{{thread.name}}</td>
<td class="">{{thread.txt}}</td>
</tr>
{% endfor %}
</tbody>
</table>
-->
<li>
{% include 'posts.html' %}