{% import "../macros/post-actions.html" as post_actions %}
{% import "../macros/post.html" as post %}
{% import "../macros/staff-nav.html" as staff_nav %}
{% import "../macros/static-pagination.html" as static_pagination %}

{% extends "base.html" %}

{% block title %}Hlášení{% endblock %}

{% block content %}
<div class="center">
    <h1 class="title">Hlášení</h1>
    <p class="description greentext">&gt;Ukliď to!!!</p>
</div>
{% call staff_nav::staff_nav() %}
<hr>
<form method="post">
    {% for post in posts %}
        {% call post::post(boards[post.board.as_str()], post, true) %}
        <table class="data-table inline-block m-0">
            <tr>
                <th>IP adresa</th>
                <th>Důvod hlášení</th>
            </tr>
            {% for report in post.reports.0 %}
                <tr>
                    <td><b>{{ report.reporter_ip }}</b> (<img class="icon" src="/static/flags/{{ report.reporter_country }}.png">)</td>
                    <td>{{ report.reason }}</td>
                </tr>
            {% endfor %}
        </table>
        <hr>
    {% endfor %}
    {% call static_pagination::static_pagination("/staff/reports", page) %}
    <hr>
    {% call post_actions::post_actions() %}
</form>
{% endblock %}