Source

django_genericview_wiki / templates / wiki / page_list.html

Full commit
{% extends "base.html" %}

{% block js_or_css %}
<link rel="stylesheet" type="text/css" href="/media/css/changelists.css" />
{% endblock %}

{% block page_title %}
All
{% endblock %}

{% block object-tools %}
<li>
<a href="{{create_page}}" class="addlink">Create Page</a>
</li>
{% endblock %}

{% block content %}
<div class="module" id="changelist">
    <table cellspacing="0">
        <thead>
        <tr>
            <th>Title</th>
        </tr>
        </thead>
        <tbody>
        {% for p in object_list %}
        {% url detail_page p.id as detail_page %}
        <tr class="{% cycle 'row1' 'row2' %}"><th><a href="{{detail_page}}">{{p}}</a></th></tr>
        {% endfor %}
        </tbody>
    </table>

{% if is_paginated %}
<p class="paginator">
{% for num in page_range %}
    {% ifequal page num %}
    <span class="this-page">{{num}}</span>
    {% else %}
    <a href="{{list_page}}?page={{num}}">{{num}}</a>
    {% endifequal %}
{% endfor %}
</p>
{% endif %}

</div>


{% endblock %}