Commit 276c59df05794df6da68721261d40e39bcb82451

  • avatar
  • asmanur
  • Sat May 07 11:10:25 CEST 2011
modified compact view so that the link sends to the last non read post, for authentificated user.
  
4949<h3>Sur le forum</h3>
5050<ul class="small-items">
5151{% for topic in last_topics %}
52<li class="{% cycle 'i' 'p' %}">{{ topic.last_post.author|author_link:"auteur-post|Auteur du dernier message"}}, dans <a href="{{ topic.last_post.get_absolute_url }}">{{ topic.sujet }}</a> ({{ topic.post__count }}) <span class="date">{% humane_date topic.last_post.creation %}</span></li>
52
53<li class="{% cycle 'i' 'p' %}">{{ topic.last_post.author|author_link:"auteur-post|Auteur du dernier message"}}, dans
54 {% if user.is_authenticated %}
55 <a href="{{ topic.last_read_post.get_absolute_url }}">{{ topic.sujet }}</a> ({{ topic.post__count }})
56 {% else %}
57 <a href="{{ topic.last_post.get_absolute_url }}">{{ topic.sujet }}</a> ({{ topic.post__count }})
58 {% endif %}
59 <span class="date">{% humane_date topic.last_post.creation %}</span></li>
5360{% empty %}
5461<li>Forum vide</li>
5562{% endfor %}