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