89c9d2a20fd1f10508abb2b9b79cdeb5cfd1f432
[cascardo/ema.git] / eventos / templates / eventos / talk_improve.html
1 {% extends "base.html" %}
2
3 {% block content %}
4 <h2>Aprimorar Trabalho: {{ talk.titulo }}</h2>
5
6 <div><strong>Palestrante:</strong> <a href="/speaker/{{ speaker.id }}">{{ speaker.nome }}</a></div>
7 <div><strong>trilha:</strong> {{ talk.trilha }}</div>
8 <div><strong>Tipo:</strong> {{ talk.tipo }}</div>
9 <div><strong>Descricao curta:</strong> {{ talk.descricao_curta}}</div>
10 <div><strong>Descricao longa:</strong> {{ talk.descricao_longa }}</div>
11
12 {% if improve %}
13 <br /><br />
14 <strong>{{ len_comments }} COMENTÁRIO(S)</strong>
15 {% endif %}
16
17 <ul id="comment-list">
18 {% for i in improve  %}
19     <li class="{% cycle 'odd' 'even' %}">
20       <span>Postado por {{ i.usuario }}</span>
21       <em>({{ i.pub_date|date:"d/m/Y" }})</em>
22       <br />
23
24       {{ i.comentario }}
25     </li>
26 {% endfor %}
27 </ul>
28
29 {% if user.is_authenticated %}
30
31 <form id="improve-add" method="post" action="./">
32   {{ form.as_p }}
33   <input type="submit" value="Comentar" />
34 </form>
35
36 {% else %}
37
38 <strong>
39   Por favor, <a href="/subscribe/">cadastre-se</a> para deixar seu
40   comentário.
41 </strong>
42
43 {% endif %}
44
45 {% endblock %}