Skip to content

Commit 021ba39

Browse files
committed
Reindent all templates with djhtml
- Legacy-Id: 19610
1 parent 288b937 commit 021ba39

551 files changed

Lines changed: 26033 additions & 26034 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/api/templates/api/base.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<html>
2-
<head>
3-
<style type="text/css">
4-
p.comment {
5-
background-color: #cfc;
6-
border: solid black 1px;
7-
padding: 0.5em;
8-
}
9-
</style>
10-
</head>
11-
<body>
12-
<div id="page_wrapper">
13-
<p class="comment">
14-
This is a very simple html version of the JSON api, to make it easier to manually explore
15-
the API.<br/>
16-
To see the pure JSON version, add '?format=json' to the browser url, or access
17-
the API with the "Accept:" http header set to "Accept: application/json".
18-
</p>
19-
<section class="content">
20-
{% block content %}{{data}}{% endblock %}
21-
</section>
22-
</div>
23-
</body>
2+
<head>
3+
<style type="text/css">
4+
p.comment {
5+
background-color: #cfc;
6+
border: solid black 1px;
7+
padding: 0.5em;
8+
}
9+
</style>
10+
</head>
11+
<body>
12+
<div id="page_wrapper">
13+
<p class="comment">
14+
This is a very simple html version of the JSON api, to make it easier to manually explore
15+
the API.<br/>
16+
To see the pure JSON version, add '?format=json' to the browser url, or access
17+
the API with the "Accept:" http header set to "Accept: application/json".
18+
</p>
19+
<section class="content">
20+
{% block content %}{{data}}{% endblock %}
21+
</section>
22+
</div>
23+
</body>
2424
</html>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
<!-- dictitem.html -->
33
<div style="margin-left: 1em;">
4-
{% for key, value in data.items %}
5-
"{{key}}": {{value}}{% if not forloop.last %},{% endif %}<br/>
6-
{% endfor %}
4+
{% for key, value in data.items %}
5+
"{{key}}": {{value}}{% if not forloop.last %},{% endif %}<br/>
6+
{% endfor %}
77
</div>
88
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
<!-- listitem.html -->
33
<div style="margin-left: 1em;">
4-
{% for item in data %}
5-
{{item}}{% if not forloop.last %},{% endif %}
6-
{% endfor %}
4+
{% for item in data %}
5+
{{item}}{% if not forloop.last %},{% endif %}
6+
{% endfor %}
77
</div>
88
]

ietf/dbtemplate/templates/dbtemplate/template_edit.html

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@
33
{% load django_bootstrap5 %}
44

55
{% block content %}
6-
<h1>Template: {{ template }}</h1>
7-
8-
<h2>Meta information</h2>
9-
<dl>
10-
<dt>Title</dt>
11-
<dd>{{ template.title }}</dt>
12-
<dt>Group</dt>
13-
<dd>{{ template.group }}</dd>
14-
<dt>Template type</dt>
15-
<dd>{{ template.type.name }}
16-
{% if template.type.slug == "rst" %}
17-
<p class="help-block">This template uses the syntax of reStructuredText. Get a quick reference at <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">http://docutils.sourceforge.net/docs/user/rst/quickref.html</a>.</p>
18-
<p class="help-block">You can do variable interpolation with $varialbe if the template allows any variable.</p>
19-
{% endif %}
20-
{% if template.type.slug == "django" %}
21-
<p class="help-block">This template uses the syntax of the default django template framework. Get more info at <a href="https://docs.djangoproject.com/en/dev/topics/templates/">https://docs.djangoproject.com/en/dev/topics/templates/</a>.</p>
22-
<p class="help-block">You can do variable interpolation with the current django markup &#123;&#123;variable&#125;&#125; if the template allows any variable.</p>
23-
{% endif %}
24-
{% if template.type.slug == "plain" %}
25-
<p class="help-block">This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.</p>
26-
{% endif %}
27-
</dd>
28-
{% if template.variables %}
29-
<dt>Variables allowed in this template</dt>
30-
<dd>{{ template.variables|linebreaks }}</dd>
31-
{% endif %}
32-
</dl>
33-
34-
<h2>Edit template content</h2>
35-
<form id="dbtemplate-edit" role="form" method="post">
36-
{% csrf_token %}
37-
38-
{% bootstrap_form form %}
39-
40-
41-
42-
<button class="btn btn-default" type="submit">Save changes</button>
43-
44-
45-
</form>
6+
<h1>Template: {{ template }}</h1>
7+
8+
<h2>Meta information</h2>
9+
<dl>
10+
<dt>Title</dt>
11+
<dd>{{ template.title }}</dt>
12+
<dt>Group</dt>
13+
<dd>{{ template.group }}</dd>
14+
<dt>Template type</dt>
15+
<dd>{{ template.type.name }}
16+
{% if template.type.slug == "rst" %}
17+
<p class="help-block">This template uses the syntax of reStructuredText. Get a quick reference at <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">http://docutils.sourceforge.net/docs/user/rst/quickref.html</a>.</p>
18+
<p class="help-block">You can do variable interpolation with $varialbe if the template allows any variable.</p>
19+
{% endif %}
20+
{% if template.type.slug == "django" %}
21+
<p class="help-block">This template uses the syntax of the default django template framework. Get more info at <a href="https://docs.djangoproject.com/en/dev/topics/templates/">https://docs.djangoproject.com/en/dev/topics/templates/</a>.</p>
22+
<p class="help-block">You can do variable interpolation with the current django markup &#123;&#123;variable&#125;&#125; if the template allows any variable.</p>
23+
{% endif %}
24+
{% if template.type.slug == "plain" %}
25+
<p class="help-block">This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.</p>
26+
{% endif %}
27+
</dd>
28+
{% if template.variables %}
29+
<dt>Variables allowed in this template</dt>
30+
<dd>{{ template.variables|linebreaks }}</dd>
31+
{% endif %}
32+
</dl>
33+
34+
<h2>Edit template content</h2>
35+
<form id="dbtemplate-edit" role="form" method="post">
36+
{% csrf_token %}
37+
38+
{% bootstrap_form form %}
39+
40+
41+
42+
<button class="btn btn-default" type="submit">Save changes</button>
43+
44+
45+
</form>
4646
{% endblock content %}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{% extends "base.html" %}
22

33
{% block content %}
4-
<h1>Defined templates for group {{ group }}</h1>
4+
<h1>Defined templates for group {{ group }}</h1>
55

6-
{% if template_list %}
7-
<ul>
8-
{% for template in template_list %}
9-
<li><a href="{% url "ietf.dbtemplate.views.template_edit" group.acronym template.id %}">{{ template }}</a></li>
10-
{% endfor %}
11-
</ul>
12-
{% else %}
13-
<p>There are no templates defined for this group.</p>
14-
{% endif %}
6+
{% if template_list %}
7+
<ul>
8+
{% for template in template_list %}
9+
<li><a href="{% url "ietf.dbtemplate.views.template_edit" group.acronym template.id %}">{{ template }}</a></li>
10+
{% endfor %}
11+
</ul>
12+
{% else %}
13+
<p>There are no templates defined for this group.</p>
14+
{% endif %}
1515
{% endblock content %}

ietf/dbtemplate/templates/dbtemplate/template_show.html

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@
33
{% load django_bootstrap5 %}
44

55
{% block content %}
6-
<h1>Template: {{ template }}</h1>
6+
<h1>Template: {{ template }}</h1>
77

8-
<h2>Meta information</h2>
9-
<dl>
10-
<dt>Title</dt>
11-
<dd>{{ template.title }}</dt>
12-
<dt>Group</dt>
13-
<dd>{{ template.group }}</dd>
14-
<dt>Template type</dt>
15-
<dd>{{ template.type.name }}
16-
{% if template.type.slug == "rst" %}
17-
<p class="help-block">This template uses the syntax of reStructuredText. Get a quick reference at <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">http://docutils.sourceforge.net/docs/user/rst/quickref.html</a>.</p>
18-
<p class="help-block">You can do variable interpolation with $varialbe if the template allows any variable.</p>
19-
{% endif %}
20-
{% if template.type.slug == "django" %}
21-
<p class="help-block">This template uses the syntax of the default django template framework. Get more info at <a href="https://docs.djangoproject.com/en/dev/topics/templates/">https://docs.djangoproject.com/en/dev/topics/templates/</a>.</p>
22-
<p class="help-block">You can do variable interpolation with the current django markup &#123;&#123;variable&#125;&#125; if the template allows any variable.</p>
23-
{% endif %}
24-
{% if template.type.slug == "plain" %}
25-
<p class="help-block">This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.</p>
26-
{% endif %}
27-
</dd>
28-
{% if template.variables %}
29-
<dt>Variables allowed in this template</dt>
30-
<dd>{{ template.variables|linebreaks }}</dd>
31-
{% endif %}
32-
</dl>
8+
<h2>Meta information</h2>
9+
<dl>
10+
<dt>Title</dt>
11+
<dd>{{ template.title }}</dt>
12+
<dt>Group</dt>
13+
<dd>{{ template.group }}</dd>
14+
<dt>Template type</dt>
15+
<dd>{{ template.type.name }}
16+
{% if template.type.slug == "rst" %}
17+
<p class="help-block">This template uses the syntax of reStructuredText. Get a quick reference at <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">http://docutils.sourceforge.net/docs/user/rst/quickref.html</a>.</p>
18+
<p class="help-block">You can do variable interpolation with $varialbe if the template allows any variable.</p>
19+
{% endif %}
20+
{% if template.type.slug == "django" %}
21+
<p class="help-block">This template uses the syntax of the default django template framework. Get more info at <a href="https://docs.djangoproject.com/en/dev/topics/templates/">https://docs.djangoproject.com/en/dev/topics/templates/</a>.</p>
22+
<p class="help-block">You can do variable interpolation with the current django markup &#123;&#123;variable&#125;&#125; if the template allows any variable.</p>
23+
{% endif %}
24+
{% if template.type.slug == "plain" %}
25+
<p class="help-block">This template uses plain text, so no markup is used. You can do variable interpolation with $variable if the template allows any variable.</p>
26+
{% endif %}
27+
</dd>
28+
{% if template.variables %}
29+
<dt>Variables allowed in this template</dt>
30+
<dd>{{ template.variables|linebreaks }}</dd>
31+
{% endif %}
32+
</dl>
3333

34-
<h2>Template content</h2>
34+
<h2>Template content</h2>
3535

36-
<div class = "panel panel-default">
37-
<p class='pasted'>{{ template.content }}</p>
38-
</div>
36+
<div class = "panel panel-default">
37+
<p class='pasted'>{{ template.content }}</p>
38+
</div>
3939

4040
{% endblock content %}

ietf/secr/templates/announcement/confirm.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
{% block title %}Announcement{% endblock %}
55

66
{% block extrahead %}{{ block.super }}
7-
<script type="text/javascript" src="{% static 'secr/js/utils.js' %}"></script>
7+
<script type="text/javascript" src="{% static 'secr/js/utils.js' %}"></script>
88
{% endblock %}
99

1010
{% block breadcrumbs %}{{ block.super }}
11-
&raquo; Announcement
11+
&raquo; Announcement
1212
{% endblock %}
1313

1414
{% block content %}
1515

16-
<div class="module">
17-
<h2>Confirm Announcement</h2>
16+
<div class="module">
17+
<h2>Confirm Announcement</h2>
1818

19-
<form action="{% url "ietf.secr.announcement.views.confirm" %}" method="post">{% csrf_token %}
19+
<form action="{% url "ietf.secr.announcement.views.confirm" %}" method="post">{% csrf_token %}
2020

21-
<pre id="announce-confirm">
21+
<pre id="announce-confirm">
2222
To: {{ to }}
2323
From: {{ message.frm }}
2424
Cc: {{ message.cc }}
@@ -27,18 +27,18 @@ <h2>Confirm Announcement</h2>
2727
Subject: {{ message.subject }}
2828

2929
{{ message.body }}
30-
</pre>
31-
32-
{{ form }}
33-
<div class="button-group">
34-
<ul id="announcement-button-list">
35-
<li><button type="submit" name="submit" value="Send">Send</button></li>
36-
<li><button onclick="history.go(-1);return false">Back</button></li>
37-
<li><button type="submit" name="submit" value="Cancel">Cancel</button></li>
38-
</ul>
39-
</div> <!-- button-group -->
40-
41-
</form>
42-
</div> <!-- module -->
30+
</pre>
31+
32+
{{ form }}
33+
<div class="button-group">
34+
<ul id="announcement-button-list">
35+
<li><button type="submit" name="submit" value="Send">Send</button></li>
36+
<li><button onclick="history.go(-1);return false">Back</button></li>
37+
<li><button type="submit" name="submit" value="Cancel">Cancel</button></li>
38+
</ul>
39+
</div> <!-- button-group -->
40+
41+
</form>
42+
</div> <!-- module -->
4343

4444
{% endblock %}

ietf/secr/templates/announcement/main.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@
22

33
{% block title %}Announcement{% endblock %}
44

5-
{% block breadcrumbs %}{{ block.super }}
6-
&raquo; Announcement
5+
{% block breadcrumbs %}{{ block.super }}
6+
&raquo; Announcement
77
{% endblock %}
88

99
{% block content %}
1010

11-
<div class="module">
12-
<h2>Announcement</h2>
13-
14-
<form action="" method="post">{% csrf_token %}
15-
<table class="new-style full-width amstable" id="announce-table">
16-
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
17-
{% for field in form.visible_fields %}
18-
<tr>
19-
<th>{{ field.label_tag }}{% if field.field.required %}<span class="required"> *</span>{% endif %}</th>
20-
<td>{{ field.errors }}{{ field }}{% if field.help_text %}<br>{{ field.help_text }}{% endif %}</td>
21-
</tr>
22-
{% endfor %}
23-
</table>
24-
<div class="button-group">
25-
<ul id="announcement-button-list">
26-
<li><button type="submit" name="submit" value="Continue">Continue</button></li>
27-
<li><button onclick="window.location='../'" value="Cancel">Cancel</button></li>
28-
</ul>
29-
</div> <!-- button-group -->
11+
<div class="module">
12+
<h2>Announcement</h2>
3013

31-
</form>
32-
</div> <!-- module -->
14+
<form action="" method="post">{% csrf_token %}
15+
<table class="new-style full-width amstable" id="announce-table">
16+
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
17+
{% for field in form.visible_fields %}
18+
<tr>
19+
<th>{{ field.label_tag }}{% if field.field.required %}<span class="required"> *</span>{% endif %}</th>
20+
<td>{{ field.errors }}{{ field }}{% if field.help_text %}<br>{{ field.help_text }}{% endif %}</td>
21+
</tr>
22+
{% endfor %}
23+
</table>
24+
<div class="button-group">
25+
<ul id="announcement-button-list">
26+
<li><button type="submit" name="submit" value="Continue">Continue</button></li>
27+
<li><button onclick="window.location='../'" value="Cancel">Cancel</button></li>
28+
</ul>
29+
</div> <!-- button-group -->
30+
31+
</form>
32+
</div> <!-- module -->
3333

3434
{% endblock %}

0 commit comments

Comments
 (0)