{% block head %}
{% block styles %} {{ bootstrap.load_css() }}
{% endblock %}
{% if title %}{{ title }} - {{ _('PyFedi') }}{% else %}{{ _('PyFedi') }}{% endif %}
{% endblock %} {% block navbar %}
Logo
{% if current_user.is_anonymous %}
{{ _('Home') }}
{{ _('Communities') }}
{{ _('Log in') }}
{{ _('Register') }}
{% else %}
{{ _('Home') }}
{{ _('Communities') }}
{{ _('Log out') }}
{% endif %}
{% endblock %} {% block content %}
{% with messages = get_flashed_messages(with_categories=True) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %} {# application content needs to be provided in the app_content block #} {% block app_content %}{% endblock %}
{% endblock %} {% block scripts %} {{ moment.include_moment() }} {{ moment.lang(g.locale) }} {% endblock %} {{ bootstrap.load_js() }} {% block end_scripts %} {% endblock %}