From e4afc0fb0d3e6f8b91a435d635e89f5a6ca84a8c Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Thu, 4 Sep 2014 16:35:28 -0500 Subject: [PATCH] html indent fix --- realms/templates/auth/login.html | 8 +- realms/templates/auth/register.html | 18 +-- realms/templates/errors/404.html | 2 +- realms/templates/errors/error.html | 6 +- realms/templates/layout.html | 2 +- realms/templates/wiki/compare.html | 27 ++--- realms/templates/wiki/create.html | 22 ++-- realms/templates/wiki/edit.html | 178 +++++++++++++--------------- realms/templates/wiki/history.html | 60 +++++----- realms/templates/wiki/page.html | 36 +++--- 10 files changed, 171 insertions(+), 188 deletions(-) diff --git a/realms/templates/auth/login.html b/realms/templates/auth/login.html index db774c9..034f256 100644 --- a/realms/templates/auth/login.html +++ b/realms/templates/auth/login.html @@ -1,8 +1,8 @@ {% extends 'layout.html' %} {% from 'macros.html' import render_form, render_field %} {% block body %} - {% call render_form(form, action_url=url_for('auth.login'), action_text='Login', btn_class='btn btn-primary') %} - {{ render_field(form.email, placeholder='Email', type='email', required=1) }} - {{ render_field(form.password, placeholder='Password', type='password', required=1) }} - {% endcall %} + {% call render_form(form, action_url=url_for('auth.login'), action_text='Login', btn_class='btn btn-primary') %} + {{ render_field(form.email, placeholder='Email', type='email', required=1) }} + {{ render_field(form.password, placeholder='Password', type='password', required=1) }} + {% endcall %} {% endblock %} diff --git a/realms/templates/auth/register.html b/realms/templates/auth/register.html index 065dc03..2e82fbd 100644 --- a/realms/templates/auth/register.html +++ b/realms/templates/auth/register.html @@ -1,13 +1,13 @@ {% extends 'layout.html' %} {% from 'macros.html' import render_form, render_field %} {% block body %} - {% call render_form(form, action_url=url_for('auth.register'), action_text='Register', btn_class='btn btn-primary') %} - {{ render_field(form.username, placeholder='Username', type='username', **{"required": 1, "data-parsley-type": "alphanum"}) }} - {{ render_field(form.email, placeholder='Email', type='email', required=1) }} - {{ render_field(form.password, placeholder='Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }} - {{ render_field(form.confirm, placeholder='Confirm Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }} - {% if config.RECAPTCHA_ENABLE %} - {{ render_field(form.recaptcha) }} - {% endif %} - {% endcall %} + {% call render_form(form, action_url=url_for('auth.register'), action_text='Register', btn_class='btn btn-primary') %} + {{ render_field(form.username, placeholder='Username', type='username', **{"required": 1, "data-parsley-type": "alphanum"}) }} + {{ render_field(form.email, placeholder='Email', type='email', required=1) }} + {{ render_field(form.password, placeholder='Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }} + {{ render_field(form.confirm, placeholder='Confirm Password', type='password', **{"required": 1, "data-parsley-minlength": "6"}) }} + {% if config.RECAPTCHA_ENABLE %} + {{ render_field(form.recaptcha) }} + {% endif %} + {% endcall %} {% endblock %} \ No newline at end of file diff --git a/realms/templates/errors/404.html b/realms/templates/errors/404.html index 686ef75..66bfd47 100644 --- a/realms/templates/errors/404.html +++ b/realms/templates/errors/404.html @@ -1,6 +1,6 @@ {% extends 'layout.html' %} {% block body %} -

Page Not Found

+

Page Not Found

{% endblock %} \ No newline at end of file diff --git a/realms/templates/errors/error.html b/realms/templates/errors/error.html index 818238a..cb11722 100644 --- a/realms/templates/errors/error.html +++ b/realms/templates/errors/error.html @@ -2,9 +2,9 @@ {% block title %}{{ title|escape }}{% endblock %} {% block scripts %} {% if traceback %} - - - + + + {% endif %} {% endblock %} {% block content %} diff --git a/realms/templates/layout.html b/realms/templates/layout.html index 5d8d3aa..2f25f41 100644 --- a/realms/templates/layout.html +++ b/realms/templates/layout.html @@ -12,7 +12,7 @@ {% for bundle in g.assets['css'] %} {% assets bundle %} - {% endassets %} + {% endassets %} {% endfor %} {% block css %}{% endblock %} diff --git a/realms/templates/wiki/compare.html b/realms/templates/wiki/compare.html index 6f83d22..c79a374 100644 --- a/realms/templates/wiki/compare.html +++ b/realms/templates/wiki/compare.html @@ -1,19 +1,16 @@ {% extends 'layout.html' %} {% block body %} -

History for {{ name }}

-
- View Old - View New -
-

- Back to History -

- - - {{ diff|safe }} - -

- Back to History -

+

History for {{ name }}

+
+ View Old + View New +
+

+ Back to History +

+ {{ diff|safe }} +

+ Back to History +

{% endblock %} \ No newline at end of file diff --git a/realms/templates/wiki/create.html b/realms/templates/wiki/create.html index cb3c6d9..6a7775c 100644 --- a/realms/templates/wiki/create.html +++ b/realms/templates/wiki/create.html @@ -1,18 +1,18 @@ {% extends 'layout.html' %} {% block body %} -
-
- - -
+ +
+ + +
-
- - -
+
+ + +
- -
+ + {% endblock %} \ No newline at end of file diff --git a/realms/templates/wiki/edit.html b/realms/templates/wiki/edit.html index ea01f53..1d3fb4b 100644 --- a/realms/templates/wiki/edit.html +++ b/realms/templates/wiki/edit.html @@ -1,112 +1,98 @@ {% extends 'layout.html' %} {% block js %} - - + + {% endblock %} {% block body %} -{% block css %} - -{% endblock %} +
+
+
+ +
+
+ +
+ + {% endblock %} \ No newline at end of file diff --git a/realms/templates/wiki/history.html b/realms/templates/wiki/history.html index 57f55e3..c5b4588 100644 --- a/realms/templates/wiki/history.html +++ b/realms/templates/wiki/history.html @@ -1,58 +1,58 @@ {% extends 'layout.html' %} {% block body %} -

History for {{ name }}

-

- Compare Revisions -

+

History for {{ name }}

+

+ Compare Revisions +

- +
- - - - + + + + {% for h in history %} - - - - - - + + + + + + {% endfor %} -
NameRevision MessageDateNameRevision MessageDate
- - {{ h.author }}View {{ h.message }} {{ h.time|datetime }}
+ + {{ h.author }}View {{ h.message }} {{ h.time|datetime }}
-

- Compare Revisions -

+ +

+ Compare Revisions +

{% endblock %} {% block js %} - + {% endblock %} \ No newline at end of file diff --git a/realms/templates/wiki/page.html b/realms/templates/wiki/page.html index a47d1b7..c355c81 100644 --- a/realms/templates/wiki/page.html +++ b/realms/templates/wiki/page.html @@ -1,30 +1,30 @@ {% extends 'layout.html' %} {% block page_menu %} -
+ +
{% endblock %} {% block body %} - {% if commit %} -
-
- - - -
-
- {% endif %} -