forked from leftypol/leftypol
multiple improvements
This commit is contained in:
parent
f0412b0814
commit
cc614e36b4
6 changed files with 138 additions and 9 deletions
|
@ -79,3 +79,13 @@
|
|||
|
||||
{# TODO #}
|
||||
</fieldset>
|
||||
|
||||
{% if config.debug %}
|
||||
<fieldset>
|
||||
<legend>Debug</legend>
|
||||
<ul>
|
||||
<li><a href="?/debug/antispam">Anti-spam</a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
{% endif %}
|
||||
|
||||
|
|
42
templates/mod/debug/antispam.html
Normal file
42
templates/mod/debug/antispam.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<p style="text-align:center">
|
||||
Most used (in active):
|
||||
</p>
|
||||
<table class="modlog" style="width:600px;margin:auto">
|
||||
<tr>
|
||||
<th>Board</th>
|
||||
<th>Thread</th>
|
||||
<th>Hash (CRC32)</th>
|
||||
<th>Created</th>
|
||||
<th>Expires</th>
|
||||
<th>Passed</th>
|
||||
</tr>
|
||||
{% for hash in top %}
|
||||
<tr>
|
||||
<td>{{ config.board_abbreviation|sprintf(hash.board) }}</td>
|
||||
<td>
|
||||
{% if hash.thread %}
|
||||
{{ hash.thread }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}</td>
|
||||
<td>{{ hash.hash }}</td>
|
||||
<td>
|
||||
<span title="{{ hash.created|date(config.post_date) }}">{{ hash.created|ago }} ago</span>
|
||||
</td>
|
||||
<td>
|
||||
{% if hash.expires %}
|
||||
<span title="{{ hash.expires|date(config.post_date) }}">
|
||||
{{ hash.expires|until }}
|
||||
</span>
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ hash.passed }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<p style="text-align:center">
|
||||
Total: <strong>{{ total }}</strong> (<strong>{{ expiring }}</strong> set to expire)
|
||||
</p>
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
{% if subtitle %}
|
||||
{{ subtitle }}
|
||||
{% endif %}
|
||||
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
||||
{% if mod and not hide_dashboard_link %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{{ body }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue