{% if is_admin %}
{% macro admin_link(url, text) %} {% set url_for = request.app.router.url_path_for(url) %}
{{ text }}
{% endmacro %}
Admin
{{ admin_link("index", "Public") }}
{{ admin_link("admin_new", "New") }}
{{ admin_link("stream", "Stream") }}
{{ admin_link("admin_inbox", "Inbox") }}/{{ admin_link("admin_outbox", "Outbox") }}
{{ admin_link("get_notifications", "Notifications") }} {% if notifications_count %}({{ notifications_count }}){% endif %}
{{ admin_link("get_lookup", "Lookup") }}
{{ admin_link("admin_bookmarks", "Bookmarks") }}
Logout
{% endif %} {% block content %}{% endblock %}