Commit 276c59df05794df6da68721261d40e39bcb82451
- Diff rendering mode:
- inline
- side by side
templates/home.html
(8 / 1)
|   | |||
| 49 | 49 | <h3>Sur le forum</h3> | |
| 50 | 50 | <ul class="small-items"> | |
| 51 | 51 | {% 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> | ||
| 53 | 60 | {% empty %} | |
| 54 | 61 | <li>Forum vide</li> | |
| 55 | 62 | {% endfor %} |

