{# # GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -#} {% block title %}{{ app_config['html_title'] }}{% endblock %} {# For clarification, the difference between the extra_head.html template # and the head template hook is that the former should be used by # themes and the latter should be used by plugins. # The reason is that only one thing can override extra_head.html... # but multiple plugins can hook into the template hook. #} {% include "mediagoblin/extra_head.html" %} {% template_hook("head") %} {% block mediagoblin_head %} {% endblock mediagoblin_head %} {% include 'mediagoblin/bits/body_start.html' %} {% block mediagoblin_body %} {% block mediagoblin_header %}
{%- include "mediagoblin/bits/logo.html" -%} {% block mediagoblin_header_title %}{% endblock %}
{%- if request.user %} {% if request.user and request.user.has_privilege('active') and not request.user.is_banned() %} {% set notification_count = get_notification_count(request.user.id) %} {% if notification_count %} {{ notification_count }} {% endif %} {% elif request.user and not request.user.has_privilege('active') %} {# the following link should only appear when verification is needed #} {% trans %}Verify your email!{% endtrans %} or {% trans %}log out{% endtrans %} {% elif request.user and request.user.is_banned() %} {% trans %}log out{% endtrans %} {% endif %} {%- elif auth %} {%- trans %}Log in{% endtrans -%} {%- endif %}
{% if request.user and request.user.has_privilege('active') %}

{% trans user_url=request.urlgen('mediagoblin.user_pages.user_home', user=request.user.username), user_name=request.user.username -%} {{ user_name }}'s account {%- endtrans %} · {%- trans %}Change account settings{% endtrans -%} · {%- trans %}Media processing panel{% endtrans -%} · {% template_hook("blog_dashboard_home") %} {% trans %}Log out{% endtrans %}

{%- trans %}Add media{% endtrans -%} {%- trans %}Create new collection{% endtrans -%} {% if request.user.has_privilege('admin','moderator') %}

Moderation powers: {%- trans %}Media processing panel{% endtrans -%} · {%- trans %}User management panel{% endtrans -%} · {%- trans %}Report management panel{% endtrans -%}

{% endif %} {% include 'mediagoblin/fragments/header_notifications.html' %}
{% endif %}
{% endblock %}
{% include 'mediagoblin/bits/above_content.html' %}
{% include "mediagoblin/utils/messages.html" %} {% block mediagoblin_content %} {% endblock mediagoblin_content %} {% if csrf_token is defined %} {% template_hook("persona_form") %} {% endif %}
{%- include "mediagoblin/bits/base_footer.html" %}
{%- endblock mediagoblin_body %} {% include 'mediagoblin/bits/body_end.html' %}