60 lines
1.7 KiB
HTML
60 lines
1.7 KiB
HTML
{% extends "admin/base_site.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block coltype %}colSM{% endblock %}
|
|
{% block breadcrumbs %}
|
|
<div class="breadcrumbs">
|
|
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
|
|
› <a href="{% url 'django-admindocs-docroot' %}">{% translate 'Documentation' %}</a>
|
|
› {% translate 'Views' %}
|
|
</div>
|
|
{% endblock %}
|
|
{% block title %}{% translate 'Views' %}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>{% translate 'View documentation' %}</h1>
|
|
|
|
{% regroup views|dictsort:'namespace' by namespace as views_by_ns %}
|
|
|
|
<div id="content-related" class="sidebar">
|
|
<div class="module">
|
|
<h2>{% translate 'Jump to namespace' %}</h2>
|
|
<ul>
|
|
{% for ns_views in views_by_ns %}
|
|
<li><a href="#ns|{{ ns_views.grouper }}">
|
|
{% if ns_views.grouper %}{{ ns_views.grouper }}
|
|
{% else %}{% translate "Empty namespace" %}{% endif %}
|
|
</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="content-main">
|
|
|
|
{% for ns_views in views_by_ns %}
|
|
<div class="module">
|
|
<h2 id="ns|{{ ns_views.grouper }}">
|
|
{% if ns_views.grouper %}
|
|
{% blocktranslate with ns_views.grouper as name %}Views by namespace {{ name }}{% endblocktranslate %}
|
|
{% else %}
|
|
{% blocktranslate %}Views by empty namespace{% endblocktranslate %}
|
|
{% endif %}
|
|
</h2>
|
|
|
|
{% for view in ns_views.list|dictsort:"url" %}
|
|
{% ifchanged %}
|
|
<h3><a href="{% url 'django-admindocs-views-detail' view=view.full_name %}">{{ view.url }}</a></h3>
|
|
<p class="small quiet">{% blocktranslate with view.full_name as full_name and view.url_name as url_name %}
|
|
View function: <code>{{ full_name }}</code>. Name: <code>{{ url_name }}</code>.
|
|
{% endblocktranslate %}</p>
|
|
<p>{{ view.title }}</p>
|
|
<hr>
|
|
{% endifchanged %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|