{% macro with_errors(field) %} {% if field.errors %} {% set css_class = 'has_error ' + kwargs.pop('class', '') %} {{ field(class=css_class, **kwargs) }} {% else %} {{ field(**kwargs) }} {% endif %} {% endmacro %} {% block title %}{% endblock %} - Galah {%- block includes %}{% endblock -%}
{%- if current_user.is_authenticated() %}
You are logged in as {{ current_user.id }} (logout)
{% else %}
You are not logged in (login)
{% endif -%} {% with messages = get_flashed_messages(with_categories = True) %} {% if messages %}
{% for category, message in messages %} {% if category in ("error", "message") %}
{{ message }}
{% endif %} {% endfor %}
{% endif %} {% endwith %}
{%- block content %}{% endblock -%}
Galah Copyright John Sullivan and other contributers, some rights reserved. Running {{ config['CURRENT_VERSION'] }}. (Get the code!)