Mercurial > public > sg101
view gpp/templates/weblinks/index.html @ 150:b43e1288ff80
Fix #33; use $.ajax instead of $.post so we can handle errors. Also, for some reason comparing objects in a template doesn't work now. Have to compare id fields.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 17 Dec 2009 04:14:16 +0000 |
parents | dbd703f7d63a |
children | fa7d82bfb100 |
line wrap: on
line source
{% 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 %}