From c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 23 Oct 2010 19:46:20 -0400 Subject: added grappelli, filebrowser, chunks and tagging to lcal repo --- .../templates/admin_doc/bookmarklets.html | 37 ++++++++++++++++ lib/grappelli/templates/admin_doc/index.html | 34 +++++++++++++++ .../templates/admin_doc/missing_docutils.html | 14 ++++++ .../templates/admin_doc/model_detail.html | 51 ++++++++++++++++++++++ lib/grappelli/templates/admin_doc/model_index.html | 45 +++++++++++++++++++ .../templates/admin_doc/template_detail.html | 21 +++++++++ .../templates/admin_doc/template_filter_index.html | 47 ++++++++++++++++++++ .../templates/admin_doc/template_tag_index.html | 48 ++++++++++++++++++++ lib/grappelli/templates/admin_doc/view_detail.html | 30 +++++++++++++ lib/grappelli/templates/admin_doc/view_index.html | 46 +++++++++++++++++++ 10 files changed, 373 insertions(+) create mode 100644 lib/grappelli/templates/admin_doc/bookmarklets.html create mode 100644 lib/grappelli/templates/admin_doc/index.html create mode 100644 lib/grappelli/templates/admin_doc/missing_docutils.html create mode 100644 lib/grappelli/templates/admin_doc/model_detail.html create mode 100644 lib/grappelli/templates/admin_doc/model_index.html create mode 100644 lib/grappelli/templates/admin_doc/template_detail.html create mode 100644 lib/grappelli/templates/admin_doc/template_filter_index.html create mode 100644 lib/grappelli/templates/admin_doc/template_tag_index.html create mode 100644 lib/grappelli/templates/admin_doc/view_detail.html create mode 100644 lib/grappelli/templates/admin_doc/view_index.html (limited to 'lib/grappelli/templates/admin_doc') diff --git a/lib/grappelli/templates/admin_doc/bookmarklets.html b/lib/grappelli/templates/admin_doc/bookmarklets.html new file mode 100644 index 0000000..7eba0be --- /dev/null +++ b/lib/grappelli/templates/admin_doc/bookmarklets.html @@ -0,0 +1,37 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% load i18n %}{% endblock %} +{% block title %}{% trans "Documentation bookmarklets" %}{% endblock %} + +{% block content %} +

{% trans "Bookmarklets" %}

+
+ {% blocktrans %} +

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").

+ {% endblocktrans %} +
+

{% trans "Documentation for this page" %}

+

{% trans "Jumps you from any page to the documentation for the view that generates that page." %}

+
+
+

{% trans "Show object ID" %}

+

{% trans "Shows the content-type and unique ID for pages that represent a single object." %}

+
+
+

{% trans "Edit this object (current window)" %}

+

{% trans "Jumps to the admin page for pages that represent a single object." %}

+
+
+

{% trans "Edit this object (new window)" %}

+

{% trans "As above, but opens the admin page in a new window." %}

+
+
+{% endblock %} diff --git a/lib/grappelli/templates/admin_doc/index.html b/lib/grappelli/templates/admin_doc/index.html new file mode 100644 index 0000000..0260106 --- /dev/null +++ b/lib/grappelli/templates/admin_doc/index.html @@ -0,0 +1,34 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Documentation{% endblock %} + +{% block content %} +

Documentation

+
+
+

Tags

+

List of all the template tags and their functions.

+
+
+

Filters

+

Filters are actions which can be applied to variables in a template to alter the output.

+
+
+

Models

+

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.

+
+
+

Views

+

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.

+
+
+

Bookmarklets

+

Tools for your browser to quickly access admin functionality.

+
+
+{% endblock %} + diff --git a/lib/grappelli/templates/admin_doc/missing_docutils.html b/lib/grappelli/templates/admin_doc/missing_docutils.html new file mode 100644 index 0000000..47488a2 --- /dev/null +++ b/lib/grappelli/templates/admin_doc/missing_docutils.html @@ -0,0 +1,14 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Please install docutils{% endblock %} + +{% block content %} +

Documentation

+
+

The admin documentation system requires Python's docutils library.

+

Please ask your administrators to install docutils.

+
+{% endblock %} diff --git a/lib/grappelli/templates/admin_doc/model_detail.html b/lib/grappelli/templates/admin_doc/model_detail.html new file mode 100644 index 0000000..85593f0 --- /dev/null +++ b/lib/grappelli/templates/admin_doc/model_detail.html @@ -0,0 +1,51 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Model: {{ name }}{% endblock %} + +{% block content %} +

{{ summary }}

+
+ {% if description %} +

{% filter linebreaksbr %}{% trans description %}{% endfilter %}

+ {% endif %} +
+ + + + + + + + + + {% for field in fields|dictsort:"name" %} + + + + + + {% endfor %} + +
FieldTypeDescription
{{ field.name }}{{ field.data_type }}{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}
+
+ ‹ Back to Models Documentation +
+{% endblock %} diff --git a/lib/grappelli/templates/admin_doc/model_index.html b/lib/grappelli/templates/admin_doc/model_index.html new file mode 100644 index 0000000..84a93f3 --- /dev/null +++ b/lib/grappelli/templates/admin_doc/model_index.html @@ -0,0 +1,45 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} + +{% block bodyclass %}documentation model-index{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Models{% endblock %} + +{% block content %} +

Model documentation

+ {% regroup models by app_label as grouped_models %} +
+
+
+

Model groups

+ +
+
+
+ {% for group in grouped_models %} +
+

{{ group.grouper|capfirst }}

+ + {% for model in group.list %} + + + + {% endfor %} +
{{ model.object_name }}
+
+ {% endfor %} +
+
+{% endblock %} \ No newline at end of file diff --git a/lib/grappelli/templates/admin_doc/template_detail.html b/lib/grappelli/templates/admin_doc/template_detail.html new file mode 100644 index 0000000..52935dd --- /dev/null +++ b/lib/grappelli/templates/admin_doc/template_detail.html @@ -0,0 +1,21 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Template: {{ name }}{% endblock %} + +{% block content %} +

Template: "{{ name }}"

+ {% regroup templates|dictsort:"site_id" by site as templates_by_site %} + {% for group in templates_by_site %} +

Search path for template "{{ name }}" on {{ group.grouper }}:

+
    + {% for template in group.list|dictsort:"order" %} +
  1. {{ template.file }}{% if not template.exists %} (does not exist){% endif %}
  2. + {% endfor %} +
+ {% endfor %} +

‹ Back to Documentation

+{% endblock %} diff --git a/lib/grappelli/templates/admin_doc/template_filter_index.html b/lib/grappelli/templates/admin_doc/template_filter_index.html new file mode 100644 index 0000000..434679b --- /dev/null +++ b/lib/grappelli/templates/admin_doc/template_filter_index.html @@ -0,0 +1,47 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Template filters{% endblock %} + +{% block content %} +

Template filter documentation

+
+
+ {% regroup filters|dictsort:"library" by library as filter_libraries %} + {% for library in filter_libraries %} +
+

{% firstof library.grouper "Built-in filters" %}

+
    + {% for filter in library.list|dictsort:"name" %} +
  • {{ filter.name }}
  • + {% endfor %} +
+
+ {% endfor %} +
+
+ {% regroup filters|dictsort:"library" by library as filter_libraries %} + {% for library in filter_libraries %} +
+

{% firstof library.grouper "Built-in filters" %}

+ {% if library.grouper %}

To use these filters, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %} in your template before using the filter.

{% endif %} + {% for filter in library.list|dictsort:"name" %} +
+

{{ filter.name }}

+

{{ filter.title }}

+

{{ filter.body }}

+
+ {% endfor %} +
+ {% endfor %} +
+
+{% endblock %} + diff --git a/lib/grappelli/templates/admin_doc/template_tag_index.html b/lib/grappelli/templates/admin_doc/template_tag_index.html new file mode 100644 index 0000000..703b2b2 --- /dev/null +++ b/lib/grappelli/templates/admin_doc/template_tag_index.html @@ -0,0 +1,48 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Template tags{% endblock %} + +{% block content %} +

Template tag documentation

+
+
+ {% regroup tags|dictsort:"library" by library as tag_libraries %} + {% for library in tag_libraries %} +
+

{% firstof library.grouper "Built-in tags" %}

+
    + {% for tag in library.list|dictsort:"name" %} +
  • {{ tag.name }}
  • + {% endfor %} +
+
+ {% endfor %} +
+
+ {% regroup tags|dictsort:"library" by library as tag_libraries %} + {% for library in tag_libraries %} +
+

{% firstof library.grouper "Built-in tags" %}

+ {% if library.grouper %}

To use these tags, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %} in your template before using the tag.

{% endif %} + {% for tag in library.list|dictsort:"name" %} +
+

{{ tag.name }}

+

{{ tag.title }}

+

{{ tag.body }}

+
+ {% endfor %} +
+ {% endfor %} +
+
+{% endblock %} + + diff --git a/lib/grappelli/templates/admin_doc/view_detail.html b/lib/grappelli/templates/admin_doc/view_detail.html new file mode 100644 index 0000000..900d3ed --- /dev/null +++ b/lib/grappelli/templates/admin_doc/view_detail.html @@ -0,0 +1,30 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}View: {{ name }}{% endblock %} + +{% block content %} +

{{ name }}

+
+
+

{{ summary }}

+

{{ body }}

+ {% if meta.Context %} +
+

Context:

+

{{ meta.Context }}

+
+ {% endif %} + {% if meta.Templates %} +
+

Templates:

+

{{ meta.Templates }}

+
+ {% endif %} +
+ ‹ Back to Views Documentation +
+{% endblock %} diff --git a/lib/grappelli/templates/admin_doc/view_index.html b/lib/grappelli/templates/admin_doc/view_index.html new file mode 100644 index 0000000..b3c941c --- /dev/null +++ b/lib/grappelli/templates/admin_doc/view_index.html @@ -0,0 +1,46 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Views{% endblock %} + +{% block content %} +

View documentation

+ {% regroup views|dictsort:"site_id" by site as views_by_site %} +
+
+
+

Jump to site

+ +
+
+
+ {% for site_views in views_by_site %} +
+

Views by URL on {{ site_views.grouper.name }}

+ {% for view in site_views.list|dictsort:"url" %} + {% ifchanged %} +
+

{{ view.url }}

+

View function: {{ view.module }}.{{ view.name }}

+

{{ view.title }}

+
+ {% endifchanged %} + {% endfor %} +
+ {% endfor %} +
+
+{% endblock %} + + -- cgit v1.2.3