diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-16 20:11:10 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-16 20:11:10 +1000 |
| commit | cc614e36b4135d5b8ac000bad8ed450df0e61ffe (patch) | |
| tree | 07026bb2a61e7d36498e40076383762b1098d007 /templates | |
| parent | f0412b08140e256056fd1ea41ea1930fcc321d22 (diff) | |
multiple improvements
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/dashboard.html | 10 | ||||
| -rw-r--r-- | templates/mod/debug/antispam.html | 42 | ||||
| -rw-r--r-- | templates/page.html | 2 |
3 files changed, 53 insertions, 1 deletions
diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 2a90d709..e9290e12 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -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 %} + diff --git a/templates/mod/debug/antispam.html b/templates/mod/debug/antispam.html new file mode 100644 index 00000000..af5354ed --- /dev/null +++ b/templates/mod/debug/antispam.html @@ -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> + diff --git a/templates/page.html b/templates/page.html index 39d73bbd..0c0264d1 100644 --- a/templates/page.html +++ b/templates/page.html @@ -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 }}
|
