1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 02:27:24 +01:00
vichan/templates/mod/report.html

56 lines
2.7 KiB
HTML

<li class="report-item">
<div class="report" id="report-{{ report.id }}">
<span class="report-reason">{% if report.reason %}{{ report.reason }}{% else %}<em>{% trans 'No reason given.' %}</em>{% endif %}</span>
<ul class="report-details">
<li class="report-detail detail-date">
<span class="detail-name">{% trans 'Report date' %}:</span>
<span class="detail-value">{{ report.time|date(config.post_date) }}</span>
</li>
{% if mod|hasPermission(config.mod.show_ip, report.board) %}
<li class="report-detail detail-date">
<span class="detail-name">{% trans 'Reported by' %}:</span>
<span class="detail-value"><a href="?/IP/{{ report.ip }}">{{ report.ip }}</a></span>
</li>
{% endif %}
</ul>
{% if mod|hasPermission(config.mod.report_dismiss, report.board) or mod|hasPermission(config.mod.report_dismiss_ip, report.board) %}
<ul class="report-actions">
{% if mod|hasPermission(config.mod.report_dismiss, report.board) %}
<li class="report-action">
<a class="action-item action-available" title="{% trans 'Discard abuse report' %}" href="{{uri_dismiss}}/{{token_dismiss}}">Dismiss</a>
</li>
{% endif %}
{% if mod|hasPermission(config.mod.report_dismiss_ip, report.board) %}
<li class="report-action">
<a class="action-item action-available" title="{% trans 'Discard all abuse reports by this IP address' %}" href="{{uri_ip}}/{{token_ip}}">Dismiss+</a>
</li>
{% endif %}
{% if global and mod|hasPermission(config.mod.report_demote, report.board) %}
<li class="report-action">
{% if clean.clean_local %}
<span class="content-action-item content-action-unavailable" title="{% trans 'Content is permitted by board rules' %}">Demote</span>
{% elseif report.local %}
<a class="action-item action-available" title="{% trans 'Demote global abuse report to a local report' %}" href="{{uri_demote}}/{{token_demote}}">Demote</a>
{% else %}
<span class="action-item action-unavailable" title="{% trans 'Report has already been dismissed locally' %}">Demote</span>
{% endif %}
</li>
{% elseif not global and mod|hasPermission(config.mod.report_promote, report.board) %}
<li class="report-action">
{% if clean.clean_global %}
<span class="content-action-item content-action-unavailable" title="{% trans 'Content is permitted by global rules' %}">Promote</span>
{% elseif report.global %}
<span class="action-item action-unavailable" title="{% trans 'Report is already a global report' %}">Promote</span>
{% else %}
<a class="action-item action-available" title="{% trans 'Promote local abuse report to a global report' %}" href="{{uri_promote}}/{{token_promote}}">Promote</a>
{% endif %}
</li>
{% endif %}
</ul>
{% endif %}
</li>