blob: f65b91ee4c964530cd4e4dbddf131ddbbeb8cff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{% extends 'base.html' %}
{% block content %}
{% with news.comment_set.all as comments %}
<div class="quickview"/>
<h2>Détails</h2>
<ul>
<li>Auteur : <a href="/user/view/name/<?=$this->news['name']?>">{{news.author}}</a></li>
<li>Date : {{news.date}} </li>
<li><a href="#comments">{{coments}}</a></li>
</div>
<div class="news"/>
<h1>{{news.title}}</h1>
<div class="news_content">
{{news.text}}
</div>
<hr/>
<h2 id="comments">Commentaires</h2>
{% for comment in comments %}
<h3 class="comment">Posté par <a href="/user/view/name/<?=$comment['name']?>">{{comment.author}}</a> le {{comment.date}} </h3>
<div class="comment_content"/>
{{comment.text}}
</div>
{% endfor %}
<h2 id="add">Ajouter un commentaire</h2>
<form class="comment_add" method="post" action="/home/view/id/<?=$this->news['id']?>/#add">
<textarea name="content" cols="90" rows="10">
</textarea>
<p class="submit"><input type="submit" value="Ajouter"/></p>
</div>
<div style="clear:both"/>
{% endwith %}
{% endblock %}
|