{% if GA_ANALYTICS %} {% endif %}
{% block head %}{% endblock %}
{% if is_admin %}
{% macro admin_link(url, text) %} {% set url_for = BASE_URL + 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("admin_snippets", "Snippets") }}
{{ 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 %}
{%- macro header_link(url, text) -%} {% set url_for = BASE_URL + request.app.router.url_path_for(url) %}
{{ text }}
{% endmacro %} {% if is_admin %} {% endif %}