diff options
author | Christian Franke <nobody@nowhere.ws> | 2011-12-30 00:06:08 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2011-12-30 00:07:20 +0100 |
commit | 2909dc657a865b3bf35707fa4599ecab0bfe3b8f (patch) | |
tree | 259a537676ddd1464dde3a7202c6983d521a0a38 /sublab_project/news/templates | |
parent | 39da608eda071907241240925e7206a80e88bc50 (diff) |
add templates and first view for news
Diffstat (limited to 'sublab_project/news/templates')
-rw-r--r-- | sublab_project/news/templates/news/news_list.html | 10 |
1 files changed, 10 insertions, 0 deletions
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 %} + <h3 id="{{ post.slug }}"> + <a>{{ post.date_updated|date }} - {{ post.title }}</a> + </h3> + <p>{{ post.content }}</p> + {% endfor %} +{% endblock content %} |