From e92ee2b4879d110f4076c17c0033267dfbbc9197 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 20:48:37 +1000 Subject: [PATCH] moderation log --- inc/lib/Twig/Extensions/Extension/Tinyboard.php | 1 + templates/mod/log.html | 30 +++++++++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/inc/lib/Twig/Extensions/Extension/Tinyboard.php b/inc/lib/Twig/Extensions/Extension/Tinyboard.php index cbb2e752..4111fc3c 100644 --- a/inc/lib/Twig/Extensions/Extension/Tinyboard.php +++ b/inc/lib/Twig/Extensions/Extension/Tinyboard.php @@ -21,6 +21,7 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension 'poster_id' => new Twig_Filter_Function('poster_id', array('needs_environment' => false)), 'remove_whitespace' => new Twig_Filter_Function('twig_remove_whitespace_filter', array('needs_environment' => false)), 'count' => new Twig_Filter_Function('count', array('needs_environment' => false)), + 'ago' => new Twig_Filter_Function('ago', array('needs_environment' => false)), 'until' => new Twig_Filter_Function('until', array('needs_environment' => false)) ); } diff --git a/templates/mod/log.html b/templates/mod/log.html index 2aa0ea0a..4f2beb40 100644 --- a/templates/mod/log.html +++ b/templates/mod/log.html @@ -1,11 +1,33 @@ - + + + + + {% for log in logs %} - + + + + + + + {% endfor %}
- - StaffIP addressAgoBoardAction
+ {{ log.username }} + + {{ log.ip }} + + {{ log.time|ago }} + + {% if log.board %} + {{ config.board_abbreviation|sprintf(log.board) }} + {% else %} + - + {% endif %} + + {{ log.text }} +