Escaped variables that should not be interpreted as HTML and which might
contain dangerous characters. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1725db5a35
commit
ebc6f90d44
|
@ -9,13 +9,13 @@
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › <a href="../">Models</a> › {{ name }}</div>{% endblock %}
|
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › <a href="../">Models</a> › {{ name|escape }}</div>{% endblock %}
|
||||||
|
|
||||||
{% block title %}Model: {{ name }}{% endblock %}
|
{% block title %}Model: {{ name|escape }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="content-main">
|
<div id="content-main">
|
||||||
<h1>{{ summary }}</h1>
|
<h1>{{ summary|escape }}</h1>
|
||||||
|
|
||||||
{% if description %}
|
{% if description %}
|
||||||
<p>{% filter escape|linebreaksbr %}{% trans description %}{% endfilter %}</p>
|
<p>{% filter escape|linebreaksbr %}{% trans description %}{% endfilter %}</p>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ field.name }}</td>
|
<td>{{ field.name }}</td>
|
||||||
<td>{{ field.data_type }}</td>
|
<td>{{ field.data_type }}</td>
|
||||||
<td>{% if field.verbose %}{{ field.verbose }}{% endif %}{% if field.help_text %} - {{ field.help_text }}{% endif %}</td>
|
<td>{% if field.verbose %}{{ field.verbose|escape }}{% endif %}{% if field.help_text %} - {{ field.help_text|escape }}{% endif %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
{% extends "admin/base_site.html" %}
|
{% extends "admin/base_site.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › Templates › {{ name }}</div>{% endblock %}
|
{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> › <a href="../../">Documentation</a> › Templates › {{ name|escape }}</div>{% endblock %}
|
||||||
{% block userlinks %}<a href="../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
|
{% block userlinks %}<a href="../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
|
||||||
|
|
||||||
{% block title %}Template: {{ name }}{% endblock %}
|
{% block title %}Template: {{ name|escape }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Template: "{{ name }}"</h1>
|
<h1>Template: "{{ name|escape }}"</h1>
|
||||||
|
|
||||||
{% regroup templates|dictsort:"site_id" by site as templates_by_site %}
|
{% regroup templates|dictsort:"site_id" by site as templates_by_site %}
|
||||||
{% for group in templates_by_site %}
|
{% for group in templates_by_site %}
|
||||||
<h2>Search path for template "{{ name }}" on {{ group.grouper }}:</h2>
|
<h2>Search path for template "{{ name|escape }}" on {{ group.grouper }}:</h2>
|
||||||
<ol>
|
<ol>
|
||||||
{% for template in group.list|dictsort:"order" %}
|
{% for template in group.list|dictsort:"order" %}
|
||||||
<li><code>{{ template.file }}</code>{% if not template.exists %} <em>(does not exist)</em>{% endif %}</li>
|
<li><code>{{ template.file|escape }}</code>{% if not template.exists %} <em>(does not exist)</em>{% endif %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
|
|
||||||
<h2 class="subhead">{{ summary }}</h2>
|
<h2 class="subhead">{{ summary|escape }}</h2>
|
||||||
|
|
||||||
<p>{{ body }}</p>
|
<p>{{ body }}</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue