diff options
author | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 01:56:27 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 01:56:27 +0100 |
commit | 14fc18cb34cbbec5b5f771f60fddfa929b3214a5 (patch) | |
tree | 484feae662578dbc6023bd754fcec32424a06a8e /sublab_project/news/templates | |
parent | 4d759e6c57c70d26ccf2eff06cdb91496225abc2 (diff) | |
parent | 27300433922788ed6630ae61608517780385f876 (diff) |
Merge branch 'master' of sublab.org:subweb
Diffstat (limited to 'sublab_project/news/templates')
-rw-r--r-- | sublab_project/news/templates/news/news_detail.html | 10 | ||||
-rw-r--r-- | sublab_project/news/templates/news/news_list.html | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sublab_project/news/templates/news/news_detail.html b/sublab_project/news/templates/news/news_detail.html new file mode 100644 index 0000000..e3a0de1 --- /dev/null +++ b/sublab_project/news/templates/news/news_detail.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} + +{% block title %}{{ object.title }}{% endblock %} + +{% block content %} + <p class="news_date">{{ object.date_updated|date:"DATETIME_FORMAT" }}</p> + <h2 id="{{ object.slug }}">{{ object.title }}</h3> + <p>{{ object.content_html|safe }}</p> + <p class="header">{{ object.author }}</p> +{% endblock content %} diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html index ab998e8..6330ffb 100644 --- a/sublab_project/news/templates/news/news_list.html +++ b/sublab_project/news/templates/news/news_list.html @@ -1,10 +1,11 @@ {% extends 'base.html' %} {%block content %} + <h2>sublab - news</h2> {% for post in news_list %} <h3 id="{{ post.slug }}"> - <a>{{ post.date_updated|date }} - {{ post.title }}</a> + <a href="{{ post.get_absolute_url }}">{{ post.date_updated|date }} - {{ post.title }}</a> </h3> - <p>{{ post.content }}</p> + <p>{{ post.content_html|safe }}</p> {% endfor %} {% endblock content %} |