comparison gpp/templates/weblinks/view_links.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children 952e05cb3d80
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'weblinks/base.html' %}
2 {% block title %}Web Links: {{ category.title }}{% endblock %}
3 {% 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/pagination.css" />
6 {% endblock %}
7 {% block weblinks_content %}
8 <h3>Category: {{ category.title }}</h3>
9
10 {% if page.object_list %}
11 <ul class="tab-nav">
12 <li><a href="{% url weblinks-view_links category=category.id,sort="title",page="1" %}"
13 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
14 <li><a href="{% url weblinks-view_links category=category.id,sort="date",page="1" %}"
15 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
16 <li><a href="{% url weblinks-view_links category=category.id,sort="hits",page="1" %}"
17 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
18 </ul>
19
20 {% include 'core/pagination.html' %}
21
22 <dl>
23 {% for link in page.object_list %}
24 {% include 'weblinks/link.html' %}
25 {% endfor %}
26 </dl>
27
28 {% include 'core/pagination.html' %}
29 {% endif %}
30 {% endblock %}