view 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
line wrap: on
line source

{% load i18n %}
{% load svmarkup %}

{% for object in object_list %}
<div class="{% cycle 'boxitem' 'boxitemalt' as rowcolor %}">
  <a href="{% url savane:svnews:news_detail object.pk %}"><strong>{{object.summary}}</strong></a><br />
  &nbsp;&nbsp;&nbsp;&nbsp;
  <span class="smaller"><em>
    {% trans "posted by" %}
    {% include 'svnews/user_submitted_by_link.inc' %}
    {{object.date}} -
    {% blocktrans count object.comment_set.count as count %}{{count}} comment{% plural %}{{count}} comments{% endblocktrans %}
  </em></span>
  <br />
  {{object.details|svmarkup_full}}
  TODO: conditional [Read more]
</div>
{% endfor %}