2008-03-18 22:54:39 +08:00
|
|
|
{% extends "admin/base_site.html" %}
|
|
|
|
{% load i18n %}
|
2011-09-21 02:30:06 +08:00
|
|
|
|
2008-03-18 22:54:39 +08:00
|
|
|
{% block coltype %}colSM{% endblock %}
|
2011-09-21 02:30:06 +08:00
|
|
|
{% block breadcrumbs %}
|
|
|
|
<div class="breadcrumbs">
|
|
|
|
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
|
|
|
› <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
|
|
|
|
› {% trans 'Views' %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2013-06-01 18:06:36 +08:00
|
|
|
{% block title %}{% trans 'Views' %}{% endblock %}
|
2008-03-18 22:54:39 +08:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2013-06-01 18:06:36 +08:00
|
|
|
<h1>{% trans 'View documentation' %}</h1>
|
2008-03-18 22:54:39 +08:00
|
|
|
|
|
|
|
{% regroup views|dictsort:"site_id" by site as views_by_site %}
|
|
|
|
|
|
|
|
<div id="content-related" class="sidebar">
|
|
|
|
<div class="module">
|
2013-06-01 18:06:36 +08:00
|
|
|
<h2>{% trans 'Jump to site' %}</h2>
|
2008-03-18 22:54:39 +08:00
|
|
|
<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 id="content-main">
|
|
|
|
|
|
|
|
{% for site_views in views_by_site %}
|
|
|
|
<div class="module">
|
2013-06-01 18:06:36 +08:00
|
|
|
<h2 id="site{{ site_views.grouper.id }}">{% blocktrans with site_views.grouper.name as name %}Views by URL on {{ name }}{% endblocktrans %}</h2>
|
2008-03-18 22:54:39 +08:00
|
|
|
|
|
|
|
{% for view in site_views.list|dictsort:"url" %}
|
|
|
|
{% ifchanged %}
|
2011-09-21 02:30:06 +08:00
|
|
|
<h3><a href="{% url 'django-admindocs-views-detail' view=view.full_name %}">{{ view.url }}</a></h3>
|
2013-06-01 18:06:36 +08:00
|
|
|
<p class="small quiet">{% blocktrans with view.full_name as name %}View function: {{ name }}{% endblocktrans %}</p>
|
2008-03-18 22:54:39 +08:00
|
|
|
<p>{{ view.title }}</p>
|
|
|
|
<hr />
|
|
|
|
{% endifchanged %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|