From a6104587203f1b1b448e6977066d6e649de91ae8 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 6 May 2012 01:33:10 +1000 Subject: a lot more improvements --- templates/mod/news.html | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 templates/mod/news.html (limited to 'templates/mod/news.html') diff --git a/templates/mod/news.html b/templates/mod/news.html new file mode 100644 index 00000000..b6c35798 --- /dev/null +++ b/templates/mod/news.html @@ -0,0 +1,70 @@ +{% if mod|hasPermission(config.mod.news) %} +
+ {% trans 'New post' %} +
+ + + + + + + + + + + + + +
+ {% if mod|hasPermission(config.mod.news_custom) %} + + {% else %} + {% trans 'Name' %} + {% endif %} + + {% if mod|hasPermission(config.mod.news_custom) %} + + {% else %} + {{ mod.username|e }} + {% endif %} +
+

+ +

+
+
+{% endif %} + +{% for post in news %} +
+ {% if mod|hasPermission(config.mod.news_delete) %} + + [{% trans 'delete' %}] + + {% endif %} +

+ + # + + {% if post.subject %} + {{ post.subject|e }} + {% else %} + {% trans 'no subject' %} + {% endif %} + + — {% trans 'by' %} {{ post.name }} {% trans 'at' %} {{ notice.time|date(config.post_date) }} + +

+

+ {{ post.body }} +

+
+{% endfor %} + +{% if count > news|count %} +

+ {% for i in range(0, (count - 1) / config.mod.news_page) %} + [{{ i + 1 }}] + {% endfor %} +

+{% endif %} -- cgit v1.3