{%- if motd is string -%} {{motd}} {%- elif motd[0] == "html" -%} {{motd[1]|safe}} {%- else -%} {{motd[1]}} {%- endif -%}

{% if anonymous_read or request.session.user or request.is_localhost %} Search Tags Albums Bookmarks Upload {% endif %} {% if request.session.user %} {{request.session.user.display_name}} {% else %} Log in {% endif %} {% if request.is_localhost or (request.session.user and request.session.user.has_permission('admin')) %} Admin {% endif %}