diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-16 17:28:57 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-16 17:28:57 +1000 |
| commit | 41e1a2481b4d2b3217b667063d9bf5115dfec9ab (patch) | |
| tree | e59fed3ed728f9eaf22dd22770ab24fb70104ee3 /templates/mod | |
| parent | ad55a634bf3f9301489f5371942c73940361a24c (diff) | |
report queue
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/report.html | 26 | ||||
| -rw-r--r-- | templates/mod/reports.html | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/templates/mod/report.html b/templates/mod/report.html new file mode 100644 index 00000000..c84e3c89 --- /dev/null +++ b/templates/mod/report.html @@ -0,0 +1,26 @@ +<div class="report"> + <hr> + Board: <a href="?/{{ report.board }}/{{ config.file_index }}">{{ config.board_abbreviation|sprintf(report.board) }}</a> + <br> + Reason: {{ report.reason }} + <br> + Report date: {{ report.time|date(config.post_date) }} + <br> + {% if mod|hasPermission(config.mod.show_ip, report.board) %} + Reported by: <a href="?/IP/{{ report.ip }}">{{ report.ip }}</a> + <br> + {% endif %} + {% if mod|hasPermission(config.mod.report_dismiss, report.board) or mod|hasPermission(config.mod.report_dismiss_ip, report.board) %} + <hr> + {% if mod|hasPermission(config.mod.report_dismiss, report.board) %} + <a title="Discard abuse report" href="?/reports/{{ report.id }}/dismiss">Dismiss</a> + {% endif %} + {% if mod|hasPermission(config.mod.report_dismiss_ip, report.board) %} + {% if mod|hasPermission(config.mod.report_dismiss, report.board) %} + | + {% endif %} + <a title="Discard all abuse reports by this IP address" href="?/reports/{{ report.id }}/dismissall">Dismiss+</a> + {% endif %} + {% endif %} +</div> + diff --git a/templates/mod/reports.html b/templates/mod/reports.html new file mode 100644 index 00000000..37322e35 --- /dev/null +++ b/templates/mod/reports.html @@ -0,0 +1,5 @@ +{% if reports %} + {{ reports }} +{% else %} + <p style="text-align:center" class="unimportant">(There are no reports.)</p> +{% endif %} |
