summaryrefslogtreecommitdiffstats
path: root/templates/blog/directory.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blog/directory.html')
-rwxr-xr-xtemplates/blog/directory.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/blog/directory.html b/templates/blog/directory.html
new file mode 100755
index 0000000..06a353e
--- /dev/null
+++ b/templates/blog/directory.html
@@ -0,0 +1,29 @@
+{% extends 'polls/base.html' %}
+
+{% block content %}
+
+ {% if object_list %}
+ <h3><a href="/admin/blog/">Blogs</a> </h3>
+ {% for object in object_list %}
+ <div class="module">
+ <table summary="blogs">
+ <caption><a href="{{ object.id }}">{{ object.name }}</a> </caption>
+ <tr>
+ <th scope="row"><a href="{{ object.id }}/">{{ object.tagline }}</a></th>
+ <td><a href="/admin/blog/{{ object.id }}/post/add/" class="addlink">New post</a></td>
+ <td><a href="/admin/blog/blog/{{ object.id }}" class="changelink">Modificar</a></td>
+ </tr>
+ {% for object in posts_list %}
+ <tr>
+ <td> {{ object.name }}</td>
+ </tr>
+ {% endfor %}
+
+ </table>
+ {% endfor %}
+{% endif %}
+{% endblock %}
+{% block info %}
+template: "blog/directory.html"
+{% endblock %}
+