Skip to content

Commit 079dc92

Browse files
Templates: (minor) removes leading tabs.
* Removes leading tabs and some tailing newline in jinja2 template. The leading tabs have been introduced with 5207:4a157824f933 when adding the crsf protection. (No entry in CHANGES.txt because the cleanup change is unsignificant whitespace only and does no require an update of the templates when upgrading roundup.)
1 parent e12bd8c commit 079dc92

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

share/roundup/templates/jinja2/html/file.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h4>{{ i18n.gettext('Files') }}</h4>
2323
<td>
2424
<form method="POST" action='issue{{ context.id }}'>
2525
<input type="hidden" name="@remove@files" value='{{ file.id }}'>
26-
<input name="@csrf" type="hidden" value="{{ utils.anti_csrf_nonce() }}">
26+
<input name="@csrf" type="hidden" value="{{ utils.anti_csrf_nonce() }}">
2727
<input type="hidden" name="@action" value="{{ i18n.gettext('edit') }}">
2828
<input type="submit" value="{{ i18n.gettext('remove') }}">
2929
</form>

share/roundup/templates/jinja2/html/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{
1+
{{
22
db.issue.renderWith('index',
33
sort=[('-', 'activity')], group=[('+', 'priority')],
44
filter=['status'],

share/roundup/templates/jinja2/html/issue.item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ <h4>Messages</h4>
5757
{% if context.is_edit_ok %}
5858
<form method="POST" action='issue{{ context.id }}' class='form-inline'>
5959
<input type="hidden" name="@remove@messages" value='{{ msg.id }}'>
60-
<input name="@csrf" type="hidden"
61-
value="{{ utils.anti_csrf_nonce() }}">
60+
<input name="@csrf" type="hidden"
61+
value="{{ utils.anti_csrf_nonce() }}">
6262
<input type="hidden" name="@action" value="edit">
6363
<input type="submit" value="remove">
6464
</form>

share/roundup/templates/jinja2/html/keyword.item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h4>Existing Keywords</h4>
3131
<input type="hidden" name="@required" value="name">
3232
<input type="hidden" name="@template" value="item">
3333
<input name="@csrf" type="hidden"
34-
value="{{ utils.anti_csrf_nonce() }}">
34+
value="{{ utils.anti_csrf_nonce() }}">
3535
<input type="hidden" name="@action" value="new">
3636
<input type='submit' class='btn btn-primary' value="{{ i18n.gettext('Create keyword') }}">
3737
</form>

share/roundup/templates/jinja2/html/user.forgotten.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<label>{{ i18n.gettext('Email Address') }}:</label>
2020
<input type='text' name="address">
2121
<input name="@csrf" type="hidden"
22-
value="{{ utils.anti_csrf_nonce() }}">
22+
value="{{ utils.anti_csrf_nonce() }}">
2323
<input name="@csrf" type="hidden"
24-
value="{{ utils.anti_csrf_nonce() }}">
24+
value="{{ utils.anti_csrf_nonce() }}">
2525
<input type="hidden" name="@action" value="passrst">
2626
<input type="hidden" name="@template" value="forgotten">
2727
<input type="submit" value="{{ i18n.gettext('Password reset') }}" class='btn btn-primary'>

share/roundup/templates/jinja2/html/user.index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<td>
3838
<form method="POST" action='user{{ user.id }}' class='form-inline'>
3939
<input type="hidden" name="@template" value="index">
40-
<input name="@csrf" type="hidden"
41-
value="{{ utils.anti_csrf_nonce() }}">
40+
<input name="@csrf" type="hidden"
41+
value="{{ utils.anti_csrf_nonce() }}">
4242
<input type="hidden" name="@action" value="retire">
4343
<input type="submit" value="{{ i18n.gettext('retire') }}" class='btn btn-small'>
4444
</form>

share/roundup/templates/jinja2/html/user.register.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
<tr class='form-actions'>
8181
<td>
8282
<input type="hidden" name="@template" value="register">
83-
<input name="@csrf" type="hidden"
84-
value="{{ utils.anti_csrf_nonce() }}">
83+
<input name="@csrf" type="hidden"
84+
value="{{ utils.anti_csrf_nonce() }}">
8585
<input type="hidden" name="@action" value="register">
8686
<input type="submit" name="submit" value="{{ i18n.gettext('Register') }}">
8787
</td>

0 commit comments

Comments
 (0)