48 řádky
1.6 KiB
HTML
48 řádky
1.6 KiB
HTML
|
{% import "./macros/post-actions.html" as post_actions %}
|
||
|
{% import "./macros/post.html" as post %}
|
||
|
{% import "./macros/static-pagination.html" as static_pagination %}
|
||
|
|
||
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block title %}
|
||
|
Vyhledávání ({% if let Some(board) = board_opt %}/{{ board.id }}/{% else %}nadnástěnka{% endif %})
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="center">
|
||
|
<img class="banner" src="/random-banner">
|
||
|
<h1 class="title">
|
||
|
Výsledky pro "{{ query }}" (
|
||
|
{% if let Some(board) = board_opt %}
|
||
|
<a href="/boards/{{ board.id }}">/{{ board.id }}/</a>
|
||
|
{% else %}
|
||
|
nadnástěnka
|
||
|
{% endif %}
|
||
|
)
|
||
|
</h1>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<form method="post">
|
||
|
<div class="thread">
|
||
|
{% for post in posts %}
|
||
|
{% if let Some(board) = board_opt %}
|
||
|
{% call post::post(board, post, true) %}
|
||
|
{% else %}
|
||
|
<b>Příspěvek z <a href="/boards/{{ post.board }}">/{{ post.board }}/</a></b>
|
||
|
<br>
|
||
|
{% call post::post(boards[post.board.as_str()], post, true) %}
|
||
|
{% endif %}
|
||
|
<br>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
<hr>
|
||
|
{% if let Some(board) = board_opt %}
|
||
|
{% call static_pagination::static_pagination("/search?board={}&query={}"|format(board.id, query|urlencode_strict), page, true) %}
|
||
|
{% else %}
|
||
|
{% call static_pagination::static_pagination("/search?query={}"|format(query|urlencode_strict), page, true) %}
|
||
|
{% endif %}
|
||
|
<hr>
|
||
|
{% call post_actions::post_actions() %}
|
||
|
</form>
|
||
|
{% endblock %}
|