{% extends 'maple/base.html' %} {% from 'base/paginate.html' import paginate%} {% from 'base/paginate.html' import footer as p_footer %} {% import 'base/link.html' as link_base %} {% import 'base/panel.html' as panel_base %} {% from 'base/head.html' import breadcrumb %} {% block title -%} {%- set n = notice_count() -%} {%- if n -%} ({{ n }}) {%- endif -%} {{ title }} {{ Title.title }} - {{ _(Title.description) }} {%- endblock title %} {% block main %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category,message in messages %} {% if category == 'message' -%} {% set category = 'info' %} {%- endif %}
{% endfor %} {% endif %} {% endwith %} {% if g.user.is_authenticated %}
{% else %} {{ a_pull_right('auth.register',_('Register')) }} {{ a_pull_right('auth.login',_('Login'))}} {% endif %} {{ a_pull_right('tag.tag',_('All Tags'))}} {{ a_pull_right('forums.userlist',_('Userlist'))}} {{ _('Notices') }} {%- set n = notice_count() -%} {%- if n -%} {{ n }} {%- endif -%} {% block content %} {% endblock %}
{% endblock %} {% macro a_pull_right(url,name) -%} {{ name }} {%- endmacro %}