diff gpp/templates/weblinks/index.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children fa7d82bfb100
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/weblinks/index.html	Mon Apr 06 02:43:12 2009 +0000
@@ -0,0 +1,15 @@
+{% extends 'weblinks/base.html' %}
+{% block title %}Web Links{% endblock %}
+{% block weblinks_content %}
+   <h3>Categories</h3>
+   {% if categories %}
+      <p>We have {{ total_links }} links in {{ categories.count }} categories.</p>
+      <dl>
+      {% for category in categories %}
+      <dt><a href="{% url weblinks-view_links category=category.id,sort="title",page=1 %}">{{ category.title }}</a>
+       ({{ category.num_links}})</dt>
+         <dd><p>{{ category.description }}</p></dd>
+      {% endfor %}
+      </dl>
+   {% endif %}
+{% endblock %}