summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin_doc/view_index.html
blob: b3c941c575e95412500d0225bf8864e4f5983562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends "admin/base_site.html" %}
{% load adminmedia %}
{% load i18n %}
{% block javascripts %}
    {{ block.super }}
    <script type="text/javascript" src="{% admin_media_prefix %}js/documentation.js"></script>
{% endblock %}
{% block bodyclass %}documentation{% endblock %}
{% block content-class %}content-grid{% endblock %}
{% block breadcrumbs %}<div id="breadcrumbs"><a href="../../">Home</a> &rsaquo; <a href="../">Documentation</a> &rsaquo; Views</div>{% endblock %}
{% block title %}Views{% endblock %}

{% block content %}
    <h1>View documentation</h1>
    {% regroup views|dictsort:"site_id" by site as views_by_site %}
    <div class="container-grid">
        <div class="column span-6">
            <div class="module table-of-contents">
                <h2>Jump to site</h2>
                <ul>
                    {% for site_views in views_by_site %}
                        <li><a href="#site{{ site_views.grouper.id }}">{{ site_views.grouper.name }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        </div>
        <div class="column span-18 last rte">
            {% for site_views in views_by_site %}
                <div class="group">
                    <h2 id="site{{ site_views.grouper.id }}">Views by URL on {{ site_views.grouper.name }}</h2>
                    {% for view in site_views.list|dictsort:"url" %}
                        {% ifchanged %}
                            <div class="module">
                                <h3><a href="{{ view.module }}.{{ view.name }}/">{{ view.url }}</a></h3>
                                <p class="small quiet">View function: {{ view.module }}.{{ view.name }}</p>
                                <p>{{ view.title }}</p>
                            </div>
                        {% endifchanged %}
                    {% endfor %}
                </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}