Mercurial > hg > savane-forge
comparison templates/svnews/news_list.inc @ 344:32d0e87d3fd5
News: display group news list, display a single news item (w/o comments)
author | Sylvain Beucler <beuc@beuc.net> |
---|---|
date | Sun, 29 Aug 2010 11:04:25 +0200 |
parents | |
children | 6ef249954cfc |
comparison
equal
deleted
inserted
replaced
343:c1d7767e3abf | 344:32d0e87d3fd5 |
---|---|
1 {% load i18n %} | |
2 {% load svmarkup %} | |
3 | |
4 {% for object in object_list %} | |
5 <div class="{% cycle 'boxitem' 'boxitemalt' as rowcolor %}"> | |
6 <a href="{% url savane:svnews:news_detail object.pk %}"><strong>{{object.summary}}</strong></a><br /> | |
7 | |
8 <span class="smaller"><em> | |
9 {% trans "posted by" %} | |
10 {% include 'svnews/user_submitted_by_link.inc' %} | |
11 {{object.date}} - | |
12 {% blocktrans count object.comment_set.count as count %}{{count}} comment{% plural %}{{count}} comments{% endblocktrans %} | |
13 </em></span> | |
14 <br /> | |
15 {{object.details|svmarkup_full}} | |
16 TODO: conditional [Read more] | |
17 </div> | |
18 {% endfor %} |