summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/django/contrib/admindocs/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/django/contrib/admindocs/templates')
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/bookmarklets.html38
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/index.html34
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/missing_docutils.html22
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_detail.html54
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_index.html52
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_detail.html29
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_filter_index.html54
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_tag_index.html54
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_detail.html33
-rw-r--r--lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_index.html48
10 files changed, 418 insertions, 0 deletions
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/bookmarklets.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/bookmarklets.html
new file mode 100644
index 0000000..819beea
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/bookmarklets.html
@@ -0,0 +1,38 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Bookmarklets' %}
+</div>
+{% endblock %}
+{% block title %}{% trans "Documentation bookmarklets" %}{% endblock %}
+
+{% block content %}
+
+{% blocktrans %}
+<p class="help">To install bookmarklets, drag the link to your bookmarks
+toolbar, or right-click the link and add it to your bookmarks. Now you can
+select the bookmarklet from any page in the site. Note that some of these
+bookmarklets require you to be viewing the site from a computer designated
+as "internal" (talk to your system administrator if you aren't sure if
+your computer is "internal").</p>
+{% endblocktrans %}
+
+<div id="content-main">
+ <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{{ admin_url|escapejs }}doc/views/'+view+'/';})()">{% trans "Documentation for this page" %}</a></h3>
+ <p>{% trans "Jumps you from any page to the documentation for the view that generates that page." %}</p>
+
+ <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{type=x.getResponseHeader('x-object-type');id=x.getResponseHeader('x-object-id');}catch(e){type='(none)';id='(none)';}d=document;b=d.body;e=d.createElement('div');e.id='xxxhhh';s=e.style;s.position='absolute';s.left='10px';s.top='10px';s.font='10px monospace';s.border='1px black solid';s.padding='4px';s.backgroundColor='#eee';e.appendChild(d.createTextNode('Type: '+type));e.appendChild(d.createElement('br'));e.appendChild(d.createTextNode('ID: '+id));e.appendChild(d.createElement('br'));l=d.createElement('a');l.href='#';l.onclick=function(){b.removeChild(e);};l.appendChild(d.createTextNode('[close]'));l.style.textDecoration='none';e.appendChild(l);b.appendChild(e);})();">{% trans "Show object ID" %}</a></h3>
+ <p>{% trans "Shows the content-type and unique ID for pages that represent a single object." %}</p>
+
+ <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){var x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){var x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{var type=x.getResponseHeader('x-object-type');var id=x.getResponseHeader('x-object-id');}catch(e){return;}document.location='{{ admin_url }}'+type.split('.').join('/')+'/'+id+'/';})()">{% trans "Edit this object (current window)" %}</a></h3>
+ <p>{% trans "Jumps to the admin page for pages that represent a single object." %}</p>
+
+ <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){var x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){var x=new XMLHttpRequest()}else{return;}x.open('GET',location.href,false);x.send(null);try{var type=x.getResponseHeader('x-object-type');var id=x.getResponseHeader('x-object-id');}catch(e){return;}window.open('{{ admin_url }}'+type.split('.').join('/')+'/'+id+'/');})()">{% trans "Edit this object (new window)" %}</a></h3>
+ <p>{% trans "As above, but opens the admin page in a new window." %}</p>
+</div>
+
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/index.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/index.html
new file mode 100644
index 0000000..2af43d7
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/index.html
@@ -0,0 +1,34 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; {% trans 'Documentation' %}</a>
+</div>
+{% endblock %}
+{% block title %}{% trans 'Documentation' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Documentation' %}</h1>
+
+<div id="content-main">
+ <h3><a href="tags/">{% trans 'Tags' %}</a></h3>
+ <p>{% trans 'List of all the template tags and their functions.' %}</p>
+
+ <h3><a href="filters/">{% trans 'Filters' %}</a></h3>
+ <p>{% trans 'Filters are actions which can be applied to variables in a template to alter the output.' %}</p>
+
+ <h3><a href="models/">{% trans 'Models' %}</a></h3>
+ <p>{% trans 'Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables' %}.</p>
+
+ <h3><a href="views/">{% trans 'Views' %}</a></h3>
+ <p>{% trans 'Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.' %}</p>
+
+ <h3><a href="bookmarklets/">{% trans 'Bookmarklets' %}</a></h3>
+ <p>{% trans 'Tools for your browser to quickly access admin functionality.' %}</p>
+</div>
+
+{% endblock %}
+
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/missing_docutils.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/missing_docutils.html
new file mode 100644
index 0000000..bd790f7
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/missing_docutils.html
@@ -0,0 +1,22 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; {% trans 'Documentation' %}</a>
+</div>
+{% endblock %}
+{% block title %}{% trans 'Please install docutils' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Documentation' %}</h1>
+
+<div id="content-main">
+ <h3>{% blocktrans with "http://docutils.sf.net/" as link %}The admin documentation system requires Python's <a href="{{ link }}">docutils</a> library.{% endblocktrans %}</h3>
+
+ <p>{% blocktrans with "http://docutils.sf.net/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktrans %}</p>
+</div>
+
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_detail.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_detail.html
new file mode 100644
index 0000000..c1e2bf1
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_detail.html
@@ -0,0 +1,54 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block extrahead %}
+{{ block.super }}
+<style type="text/css">
+.module table { width:100%; }
+.module table p { padding: 0; margin: 0; }
+</style>
+{% endblock %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-models-index' %}">{% trans 'Models' %}</a>
+&rsaquo; {{ name }}
+</div>
+{% endblock %}
+
+{% block title %}{% blocktrans %}Model: {{ name }}{% endblocktrans %}{% endblock %}
+
+{% block content %}
+<div id="content-main">
+<h1>{{ summary }}</h1>
+
+{% if description %}
+ <p>{% filter linebreaksbr %}{% trans description %}{% endfilter %}</p>
+{% endif %}
+
+<div class="module">
+<table class="model">
+<thead>
+<tr>
+ <th>{% trans 'Field' %}</th>
+ <th>{% trans 'Type' %}</th>
+ <th>{% trans 'Description' %}</th>
+</tr>
+</thead>
+<tbody>
+{% for field in fields|dictsort:"name" %}
+<tr>
+ <td>{{ field.name }}</td>
+ <td>{{ field.data_type }}</td>
+ <td>{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}</td>
+</tr>
+{% endfor %}
+</tbody>
+</table>
+</div>
+
+<p class="small"><a href="{% url 'django-admindocs-models-index' %}">&lsaquo; {% trans 'Back to Models Documentation' %}</a></p>
+</div>
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_index.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_index.html
new file mode 100644
index 0000000..d4cde83
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/model_index.html
@@ -0,0 +1,52 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block coltype %}colSM{% endblock %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Models' %}
+</div>
+{% endblock %}
+
+{% block title %}{% trans 'Models' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Model documentation' %}</h1>
+
+{% regroup models by app_label as grouped_models %}
+
+<div id="content-main">
+{% for group in grouped_models %}
+<div class="module">
+<h2 id="app-{{ group.grouper }}">{{ group.grouper|capfirst }}</h2>
+
+<table class="xfull">
+{% for model in group.list %}
+<tr>
+<th><a href="{% url 'django-admindocs-models-detail' app_label=model.app_label model_name=model.object_name.lower %}">{{ model.object_name }}</a></th>
+</tr>
+{% endfor %}
+</table>
+</div>
+{% endfor %}
+
+</div>
+{% endblock %}
+
+{% block sidebar %}
+<div id="content-related" class="sidebar">
+<div class="module">
+<h2>{% trans 'Model groups' %}</h2>
+<ul>
+{% regroup models by app_label as grouped_models %}
+{% for group in grouped_models %}
+ <li><a href="#app-{{ group.grouper }}">{{ group.grouper|capfirst }}</a></li>
+{% endfor %}
+</ul>
+</div>
+</div>
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_detail.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_detail.html
new file mode 100644
index 0000000..9535724
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_detail.html
@@ -0,0 +1,29 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Templates' %}
+&rsaquo; {{ name }}
+</div>
+{% endblock %}
+
+{% block title %}{% blocktrans %}Template: {{ name }}{% endblocktrans %}{% endblock %}
+
+{% block content %}
+<h1>{% blocktrans %}Template: "{{ name }}"{% endblocktrans %}</h1>
+
+{% regroup templates|dictsort:"site_id" by site as templates_by_site %}
+{% for group in templates_by_site %}
+ <h2>{% blocktrans with group.grouper as grouper %}Search path for template "{{ name }}" on {{ grouper }}:{% endblocktrans %}</h2>
+ <ol>
+ {% for template in group.list|dictsort:"order" %}
+ <li><code>{{ template.file }}</code>{% if not template.exists %} <em>{% trans '(does not exist)' %}</em>{% endif %}</li>
+ {% endfor %}
+ </ol>
+{% endfor %}
+
+<p class="small"><a href="{% url 'django-admindocs-docroot' %}">&lsaquo; {% trans 'Back to Documentation' %}</a></p>
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_filter_index.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_filter_index.html
new file mode 100644
index 0000000..04aac39
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_filter_index.html
@@ -0,0 +1,54 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}{% load firstof from future %}
+
+{% block coltype %}colSM{% endblock %}
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Filters' %}
+</div>
+{% endblock %}
+{% block title %}{% trans 'Template filters' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Template filter documentation' %}</h1>
+
+<div id="content-main">
+{% regroup filters|dictsort:"library" by library as filter_libraries %}
+{% for library in filter_libraries %}
+<div class="module">
+ <h2>{% firstof library.grouper _("Built-in filters") %}</h2>
+ {% if library.grouper %}<p class="small quiet">{% blocktrans with code="{"|add:"% load "|add:library.grouper|add:" %"|add:"}" %}To use these filters, put <code>{{ code }}</code> in your template before using the filter.{% endblocktrans %}</p><hr />{% endif %}
+ {% for filter in library.list|dictsort:"name" %}
+ <h3 id="{{ library.grouper|default:"built_in" }}-{{ filter.name }}">{{ filter.name }}</h3>
+ {{ filter.title }}
+ {{ filter.body }}
+ {% if not forloop.last %}<hr />{% endif %}
+ {% endfor %}
+</div>
+{% endfor %}
+</div>
+
+{% endblock %}
+
+{% block sidebar %}
+
+<div id="content-related">
+
+{% regroup filters|dictsort:"library" by library as filter_libraries %}
+{% for library in filter_libraries %}
+<div class="module">
+ <h2>{% firstof library.grouper _("Built-in filters") %}</h2>
+ <ul>
+ {% for filter in library.list|dictsort:"name" %}
+ <li><a href="#{{ library.grouper|default:"built_in" }}-{{ filter.name }}">{{ filter.name }}</a></li>
+ {% endfor %}
+ </ul>
+</div>
+{% endfor %}
+
+</div>
+
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_tag_index.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
new file mode 100644
index 0000000..a3c6eaa
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/template_tag_index.html
@@ -0,0 +1,54 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}{% load firstof from future %}
+
+{% block coltype %}colSM{% endblock %}
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Tags' %}
+</div>
+{% endblock %}
+{% block title %}{% trans 'Template tags' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'Template tag documentation' %}</h1>
+
+<div id="content-main">
+{% regroup tags|dictsort:"library" by library as tag_libraries %}
+{% for library in tag_libraries %}
+<div class="module">
+ <h2>{% firstof library.grouper _("Built-in tags") %}</h2>
+ {% if library.grouper %}<p class="small quiet">{% blocktrans with code="{"|add:"% load "|add:library.grouper|add:" %"|add:"}" %}To use these tags, put <code>{{ code }}</code> in your template before using the tag.{% endblocktrans %}</p><hr />{% endif %}
+ {% for tag in library.list|dictsort:"name" %}
+ <h3 id="{{ library.grouper|default:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
+ <h4>{{ tag.title|striptags }}</h4>
+ {{ tag.body }}
+ {% if not forloop.last %}<hr />{% endif %}
+ {% endfor %}
+</div>
+{% endfor %}
+</div>
+
+{% endblock %}
+
+{% block sidebar %}
+
+<div id="content-related">
+
+{% regroup tags|dictsort:"library" by library as tag_libraries %}
+{% for library in tag_libraries %}
+<div class="module">
+ <h2>{% firstof library.grouper _("Built-in tags") %}</h2>
+ <ul>
+ {% for tag in library.list|dictsort:"name" %}
+ <li><a href="#{{ library.grouper|default:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
+ {% endfor %}
+ </ul>
+</div>
+{% endfor %}
+
+</div>
+
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_detail.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_detail.html
new file mode 100644
index 0000000..050e6c8
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_detail.html
@@ -0,0 +1,33 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-views-index' %}">{% trans 'Views' %}</a>
+&rsaquo; {{ name }}
+</div>
+{% endblock %}
+{% block title %}{% blocktrans %}View: {{ name }}{% endblocktrans %}{% endblock %}
+
+{% block content %}
+
+<h1>{{ name }}</h1>
+
+<h2 class="subhead">{{ summary|striptags }}</h2>
+
+{{ body }}
+
+{% if meta.Context %}
+<h3>{% trans 'Context:' %}</h3>
+<p>{{ meta.Context }}</p>
+{% endif %}
+
+{% if meta.Templates %}
+<h3>{% trans 'Templates:' %}</h3>
+<p>{{ meta.Templates }}</p>
+{% endif %}
+
+<p class="small"><a href="{% url 'django-admindocs-views-index' %}">&lsaquo; {% trans 'Back to Views Documentation' %}</a></p>
+{% endblock %}
diff --git a/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_index.html b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_index.html
new file mode 100644
index 0000000..891eee7
--- /dev/null
+++ b/lib/python2.7/site-packages/django/contrib/admindocs/templates/admin_doc/view_index.html
@@ -0,0 +1,48 @@
+{% extends "admin/base_site.html" %}
+{% load i18n %}
+
+{% block coltype %}colSM{% endblock %}
+{% block breadcrumbs %}
+<div class="breadcrumbs">
+<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
+&rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
+&rsaquo; {% trans 'Views' %}
+</div>
+{% endblock %}
+{% block title %}{% trans 'Views' %}{% endblock %}
+
+{% block content %}
+
+<h1>{% trans 'View documentation' %}</h1>
+
+{% regroup views|dictsort:"site_id" by site as views_by_site %}
+
+<div id="content-related" class="sidebar">
+<div class="module">
+<h2>{% trans '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 id="content-main">
+
+{% for site_views in views_by_site %}
+<div class="module">
+<h2 id="site{{ site_views.grouper.id }}">{% blocktrans with site_views.grouper.name as name %}Views by URL on {{ name }}{% endblocktrans %}</h2>
+
+{% for view in site_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">{% blocktrans with view.full_name as name %}View function: {{ name }}{% endblocktrans %}</p>
+<p>{{ view.title }}</p>
+<hr />
+{% endifchanged %}
+{% endfor %}
+</div>
+{% endfor %}
+</div>
+{% endblock %}