2014-10-19 03:07:04 +02:00
< li class = "report-item" >
2014-10-20 17:17:19 +02:00
< div class = "report" id = "report-{{ report.id }}" >
2014-10-19 07:07:16 +02:00
< 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 >
2014-10-19 03:07:04 +02:00
{% if mod|hasPermission(config.mod.report_dismiss, report.board) or mod|hasPermission(config.mod.report_dismiss_ip, report.board) %}
2014-10-19 07:07:16 +02:00
< ul class = "report-actions" >
2012-04-16 09:28:57 +02:00
{% if mod|hasPermission(config.mod.report_dismiss, report.board) %}
2014-10-19 07:07:16 +02:00
< li class = "report-action" >
2014-10-19 18:07:07 +02:00
< a class = "action-item action-available" title = "{% trans 'Discard abuse report' %}" href = "{{uri_dismiss}}/{{token_dismiss}}" > Dismiss< / a >
2014-10-19 07:07:16 +02:00
< / li >
2014-10-19 03:07:04 +02:00
{% endif %}
2014-10-19 07:07:16 +02:00
2014-10-19 03:07:04 +02:00
{% if mod|hasPermission(config.mod.report_dismiss_ip, report.board) %}
2014-10-19 07:07:16 +02:00
< li class = "report-action" >
2014-10-19 18:07:07 +02:00
< a class = "action-item action-available" title = "{% trans 'Discard all abuse reports by this IP address' %}" href = "{{uri_ip}}/{{token_ip}}" > Dismiss+< / a >
2014-10-19 07:07:16 +02:00
< / li >
{% endif %}
{% if global and mod|hasPermission(config.mod.report_demote, report.board) %}
< li class = "report-action" >
2014-10-21 14:50:25 +02:00
{% 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 %}
2014-10-19 18:07:07 +02:00
< a class = "action-item action-available" title = "{% trans 'Demote global abuse report to a local report' %}" href = "{{uri_demote}}/{{token_demote}}" > Demote< / a >
2014-10-19 07:07:16 +02:00
{% 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" >
2014-10-21 14:50:25 +02:00
{% 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 %}
2014-10-19 07:07:16 +02:00
< span class = "action-item action-unavailable" title = "{% trans 'Report is already a global report' %}" > Promote< / span >
{% else %}
2014-10-19 18:07:07 +02:00
< a class = "action-item action-available" title = "{% trans 'Promote local abuse report to a global report' %}" href = "{{uri_promote}}/{{token_promote}}" > Promote< / a >
2014-10-19 03:07:04 +02:00
{% endif %}
2014-10-19 07:07:16 +02:00
< / li >
2012-04-16 09:28:57 +02:00
{% endif %}
2014-10-19 07:07:16 +02:00
< / ul >
2012-04-16 09:28:57 +02:00
{% endif %}
2014-10-19 03:07:04 +02:00
< / li >