From 2909dc657a865b3bf35707fa4599ecab0bfe3b8f Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Fri, 30 Dec 2011 00:06:08 +0100 Subject: add templates and first view for news --- sublab_project/news/templates/news/news_list.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sublab_project/news/templates/news/news_list.html (limited to 'sublab_project/news/templates') diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html new file mode 100644 index 0000000..ab998e8 --- /dev/null +++ b/sublab_project/news/templates/news/news_list.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} + +{%block content %} + {% for post in news_list %} +

+ {{ post.date_updated|date }} - {{ post.title }} +

+

{{ post.content }}

+ {% endfor %} +{% endblock content %} -- cgit v1.2.1