renaming a file to enforce name standards
authorLincoln de Sousa <lincoln@alfaiati.net>
Thu, 6 Nov 2008 22:50:09 +0000 (20:50 -0200)
committerLincoln de Sousa <lincoln@alfaiati.net>
Thu, 6 Nov 2008 22:50:09 +0000 (20:50 -0200)
eventos/templates/eventos/talk-improve.html [new file with mode: 0644]
eventos/templates/eventos/talk_improve.html [deleted file]
eventos/views.py

diff --git a/eventos/templates/eventos/talk-improve.html b/eventos/templates/eventos/talk-improve.html
new file mode 100644 (file)
index 0000000..89c9d2a
--- /dev/null
@@ -0,0 +1,45 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h2>Aprimorar Trabalho: {{ talk.titulo }}</h2>
+
+<div><strong>Palestrante:</strong> <a href="/speaker/{{ speaker.id }}">{{ speaker.nome }}</a></div>
+<div><strong>trilha:</strong> {{ talk.trilha }}</div>
+<div><strong>Tipo:</strong> {{ talk.tipo }}</div>
+<div><strong>Descricao curta:</strong> {{ talk.descricao_curta}}</div>
+<div><strong>Descricao longa:</strong> {{ talk.descricao_longa }}</div>
+
+{% if improve %}
+<br /><br />
+<strong>{{ len_comments }} COMENTÁRIO(S)</strong>
+{% endif %}
+
+<ul id="comment-list">
+{% for i in improve  %}
+    <li class="{% cycle 'odd' 'even' %}">
+      <span>Postado por {{ i.usuario }}</span>
+      <em>({{ i.pub_date|date:"d/m/Y" }})</em>
+      <br />
+
+      {{ i.comentario }}
+    </li>
+{% endfor %}
+</ul>
+
+{% if user.is_authenticated %}
+
+<form id="improve-add" method="post" action="./">
+  {{ form.as_p }}
+  <input type="submit" value="Comentar" />
+</form>
+
+{% else %}
+
+<strong>
+  Por favor, <a href="/subscribe/">cadastre-se</a> para deixar seu
+  comentário.
+</strong>
+
+{% endif %}
+
+{% endblock %}
diff --git a/eventos/templates/eventos/talk_improve.html b/eventos/templates/eventos/talk_improve.html
deleted file mode 100644 (file)
index 89c9d2a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<h2>Aprimorar Trabalho: {{ talk.titulo }}</h2>
-
-<div><strong>Palestrante:</strong> <a href="/speaker/{{ speaker.id }}">{{ speaker.nome }}</a></div>
-<div><strong>trilha:</strong> {{ talk.trilha }}</div>
-<div><strong>Tipo:</strong> {{ talk.tipo }}</div>
-<div><strong>Descricao curta:</strong> {{ talk.descricao_curta}}</div>
-<div><strong>Descricao longa:</strong> {{ talk.descricao_longa }}</div>
-
-{% if improve %}
-<br /><br />
-<strong>{{ len_comments }} COMENTÁRIO(S)</strong>
-{% endif %}
-
-<ul id="comment-list">
-{% for i in improve  %}
-    <li class="{% cycle 'odd' 'even' %}">
-      <span>Postado por {{ i.usuario }}</span>
-      <em>({{ i.pub_date|date:"d/m/Y" }})</em>
-      <br />
-
-      {{ i.comentario }}
-    </li>
-{% endfor %}
-</ul>
-
-{% if user.is_authenticated %}
-
-<form id="improve-add" method="post" action="./">
-  {{ form.as_p }}
-  <input type="submit" value="Comentar" />
-</form>
-
-{% else %}
-
-<strong>
-  Por favor, <a href="/subscribe/">cadastre-se</a> para deixar seu
-  comentário.
-</strong>
-
-{% endif %}
-
-{% endblock %}
index af5d498..618b8ee 100644 (file)
@@ -326,7 +326,7 @@ def talk_improve(request, tid):
 
     c = {'talk': talk, 'form': form, 'improve': improve,
          'len_comments': len(improve), 'speaker': speaker}
-    return render_to_response('eventos/talk_improve.html', Context(c),
+    return render_to_response('eventos/talk-improve.html', Context(c),
                               context_instance=RequestContext(request))
 
 def subscribe(request):