comparison gpp/templates/weblinks/view_links.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 7e8d2dda99e3
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'weblinks/base.html' %} 1 {% extends 'weblinks/base.html' %}
2 {% load url from future %}
2 {% block title %}Web Links: {{ category.title }}{% endblock %} 3 {% block title %}Web Links: {{ category.title }}{% endblock %}
3 {% block weblinks_css %} 4 {% block weblinks_css %}
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" /> 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" />
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
6 {% endblock %} 7 {% endblock %}
10 {% block weblinks_content %} 11 {% block weblinks_content %}
11 <h3>Category: {{ category.title }}</h3> 12 <h3>Category: {{ category.title }}</h3>
12 13
13 {% if page.object_list %} 14 {% if page.object_list %}
14 <ul class="tab-nav"> 15 <ul class="tab-nav">
15 <li><a href="{% url weblinks-view_links slug=category.slug sort="title" %}" 16 <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="title" %}"
16 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> 17 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
17 <li><a href="{% url weblinks-view_links slug=category.slug sort="date" %}" 18 <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="date" %}"
18 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> 19 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
19 <li><a href="{% url weblinks-view_links slug=category.slug sort="hits" %}" 20 <li><a href="{% url 'weblinks-view_links' slug=category.slug sort="hits" %}"
20 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> 21 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
21 </ul> 22 </ul>
22 23
23 {% include 'core/pagination.html' %} 24 {% include 'core/pagination.html' %}
24 25