diff --git a/src/app.py b/src/app.py index 755ea61..838dce8 100644 --- a/src/app.py +++ b/src/app.py @@ -25,7 +25,7 @@ login.login_view = "login" @app.context_processor def inject_title(): - return dict(title=config.TITLE, style=config.STYLE, + return dict(title=config.TITLE, style=config.STYLE, \ description=config.DESCRIPTION, \ registration=config.ALLOW_REGISTRATION, r_to_star=rating_to_star) diff --git a/src/templates/archive.html b/src/templates/archive.html index ec501e5..00929e3 100644 --- a/src/templates/archive.html +++ b/src/templates/archive.html @@ -1,26 +1,46 @@ -{% extends "template.html" %} +{% extends "template.html" -%} -{% block content %} -
{{ form.submit() }}
- {% for mesg in get_flashed_messages() %} + {% for mesg in get_flashed_messages() -%}{{ mesg }}
- {% endfor %} + {% endfor -%}
{{ form.username.label }}
{{ form.username(size=32) }}
- {% for error in form.username.errors %}
+ {% for error in form.username.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.password.label }}
{{ form.password(size=32) }}
- {% for error in form.password.errors %}
+ {% for error in form.password.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.password2.label }}
{{ form.password2(size=32) }}
- {% for error in form.password2.errors %}
+ {% for error in form.password2.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.submit() }}
- {% for mesg in get_flashed_messages() %} + {% for mesg in get_flashed_messages() -%}{{ mesg }}
- {% endfor %} + {% endfor -%}
{{ form.name.label }}
{{ form.name(size=64) }}
- {% for error in form.name.errors %}
+ {% for error in form.name.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.date.label }}
{{ form.date }}
- {% for error in form.date.errors %}
+ {% for error in form.date.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.text.label }}
{{ form.text }}
- {% for error in form.text.errors %}
+ {% for error in form.text.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ ckeditor.load() }}
{{ ckeditor.config(name="text") }}
{{ form.rating.label }}
{{ form.rating }}
- {% for error in form.rating.errors %}
+ {% for error in form.rating.errors -%}
[{{ error }}]
- {% endfor %}
+ {% endfor -%}
{{ form.submit() }}
- {% for mesg in get_flashed_messages() %} + {% for mesg in get_flashed_messages() -%}{{ mesg }}
- {% endfor %} + {% endfor -%}