Mercurial > public > sg101
annotate gpp/templates/weblinks/view_links.html @ 19:aa2b41c5212b
First steps at scratching out a home page. Will need to develop some template tags now to fill it out.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:10:00 +0000 |
parents | dbd703f7d63a |
children | 952e05cb3d80 |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'weblinks/base.html' %} |
gremmie@1 | 2 {% block title %}Web Links: {{ category.title }}{% endblock %} |
gremmie@1 | 3 {% block weblinks_css %} |
gremmie@1 | 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" /> |
gremmie@1 | 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> |
gremmie@1 | 6 {% endblock %} |
gremmie@1 | 7 {% block weblinks_content %} |
gremmie@1 | 8 <h3>Category: {{ category.title }}</h3> |
gremmie@1 | 9 |
gremmie@1 | 10 {% if page.object_list %} |
gremmie@1 | 11 <ul class="tab-nav"> |
gremmie@1 | 12 <li><a href="{% url weblinks-view_links category=category.id,sort="title",page="1" %}" |
gremmie@1 | 13 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> |
gremmie@1 | 14 <li><a href="{% url weblinks-view_links category=category.id,sort="date",page="1" %}" |
gremmie@1 | 15 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> |
gremmie@1 | 16 <li><a href="{% url weblinks-view_links category=category.id,sort="hits",page="1" %}" |
gremmie@1 | 17 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> |
gremmie@1 | 18 </ul> |
gremmie@1 | 19 |
gremmie@1 | 20 {% include 'core/pagination.html' %} |
gremmie@1 | 21 |
gremmie@1 | 22 <dl> |
gremmie@1 | 23 {% for link in page.object_list %} |
gremmie@1 | 24 {% include 'weblinks/link.html' %} |
gremmie@1 | 25 {% endfor %} |
gremmie@1 | 26 </dl> |
gremmie@1 | 27 |
gremmie@1 | 28 {% include 'core/pagination.html' %} |
gremmie@1 | 29 {% endif %} |
gremmie@1 | 30 {% endblock %} |