{% if mod|hasPermission(config.mod.view_notes) %}
{% set notes_length = notes|length %} {{ notes_length }} {% trans %}note on record{% plural notes_length %}notes on record{% endtrans %} {% if notes|length > 0 %} {% if mod|hasPermission(config.mod.remove_notes) %} {% endif %} {% for note in notes %} {% if mod|hasPermission(config.mod.remove_notes) %} {% endif %} {% endfor %}
{% trans 'Staff' %} {% trans 'Note' %} {% trans 'Date' %}{% trans 'Actions' %}
{% if note.username %} {{ note.username|e }} {% else %} {% trans 'deleted?' %} {% endif %} {{ note.body }} {{ note.time|date(config.post_date) }} [{% trans 'remove' %}]
{% endif %} {% if mod|hasPermission(config.mod.create_notes) %}
{% trans 'Staff' %} {{ mod.username|e }}
{% endif %}
{% endif %} {% if bans|length > 0 and mod|hasPermission(config.mod.view_ban) %}
{% set bans_length = bans|length %} {{ bans_length }} {% trans %}ban on record{% plural notes_length %}bans on record{% endtrans %} {% for ban in bans %}
{% include 'mod/ban_history.html' %}
{% endfor %}
{% endif %} {% if mod|hasPermission(config.mod.ban) %}
{% trans 'New ban' %} {% set redirect = '?/IP/' ~ ip|cloak_ip ~ '#bans' %} {% include 'mod/ban_form.html' %}
{% endif %} {% if logs|length > 0 %}
History {% for log in logs %} {% endfor %}
{% trans 'Staff' %} {% trans 'Time' %} {% trans 'Board' %} {% trans 'Action' %}
{% if log.username %} {{ log.username|e }} {% elseif log.mod == -1 %} system {% else %} {% trans 'deleted?' %} {% endif %} {{ log.time|ago }} {% if log.board %} {{ config.board_abbreviation|sprintf(log.board) }} {% else %} - {% endif %} {{ log.text }}
{% endif %} {% for board_posts in posts %}
{{ config.board_abbreviation|sprintf(board_posts.board.uri) }} - {{ board_posts.board.title|e }} {{ board_posts.posts|join('
') }}
{% endfor %} {% if mod|hasPermission(config.mod.warning) %}
{% trans 'New warning' %} {% set redirect = '?/IP/' ~ ip|cloak_ip ~ '#history' %} {% include 'mod/warning_form.html' %}
{% endif %} {% if mod|hasPermission(config.mod.ban) %}
{% trans 'New ban' %} {% set redirect = '?/IP/' ~ ip|cloak_ip ~ '#bans' %} {% include 'mod/ban_form.html' %}
{% endif %}