]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/cloud.html
First iteration towards doing a tag cloud
[djsite.git] / quotes / templates / quotes / cloud.html
diff --git a/quotes/templates/quotes/cloud.html b/quotes/templates/quotes/cloud.html
new file mode 100644 (file)
index 0000000..71fdcbb
--- /dev/null
@@ -0,0 +1,16 @@
+{% extends 'quotes/base.html' %}
+
+{% block title %}All the quotes in the database{% endblock %}
+
+{% block body %}
+
+<ul>
+  {% for tag in cloud %}
+  <li class="tag-size-{{ tag.size }}">
+    <a href="{{ tag.get_absolute_url }}"
+       title="{{ tag.tag }}, {{ tag.num_quotes }} quotes">{{ tag.tag }}</a>: {{ tag.num_quotes }}
+  </li>
+  {% endfor %}
+</ul>
+
+{% endblock %}