From a4895f06680beaf447ed43ee326423fcc8232815 Mon Sep 17 00:00:00 2001 From: Olivier Keun Date: Fri, 22 Jul 2011 16:25:57 +0200 Subject: News frontpage layout changes Signed-off-by: Dan McGee --- templates/public/index.html | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/public/index.html b/templates/public/index.html index e68943c..c8b6def 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -40,17 +40,40 @@
-

Latest News (more)

+

+ Latest News + +

RSS Feed {% for news in news_updates %} -

{{ news.title }}

+ {% if forloop.counter0 < 5 %} +

+ {{ news.title }} +

{{ news.postdate|date }}

{{ news.content|markdown|truncatewords_html:75 }}
+ {% else %} + {% if forloop.counter0 == 5 %} +

+ Older News + +

+
+ {% endif %} +
{{ news.postdate|date }}
+
+ {{ news.title }} +
+ {% if forloop.last %} +
+ {% endif %} + {% endif %} {% endfor %}
-- cgit v1.2.3-24-g4f1b