Added a view for looking at an individual news entry. It's ugly, one of you artsy people should make it less so :)

This commit is contained in:
Greg Taylor 2007-07-26 15:50:24 +00:00
parent 1afcd6bf99
commit 6aab3a4145
3 changed files with 7 additions and 52 deletions

View file

@ -22,8 +22,8 @@
<div class="oneThird">
<h1>Latest News</h1>
{% for entry in news_entries %}
<a href="/news/show/{{entry.id}}" class="newsHeading">{{entry.title}}</a>
<p class="newsDate">{{entry.date_posted|time}}</p>
<a href="/news/show/{{entry.id}}" class="newsHeading">{{entry.topic.name}}: {{entry.title}}</a>
<p class="newsDate">By {{entry.author.username}} on {{entry.date_posted|time}}</p>
<p class="newsSummary">{{entry.body|truncatewords:20}}</p>
{% endfor %}