X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftemplates%2Fmediagoblin%2Fbase.html;h=6394fa4f384221a3f120edf395c791c34c44ebff;hb=eedb6d1f3bc118ac98e713f52692a8399c6dc8e5;hp=fc4f420f281ac8f33a2a5fa370c6d30ab53f8bf7;hpb=9a899af02b6dbd2792482f39405d22e0361c8bf6;p=mediagoblin.git diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index fc4f420f..6394fa4f 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -23,6 +23,7 @@ + {% block title %}{{ app_config['html_title'] }}{% endblock %} @@ -34,6 +35,11 @@ src="{{ request.staticdirect('/js/extlib/jquery.js') }}"> + + {# For clarification, the difference between the extra_head.html template # and the head template hook is that the former should be used by @@ -56,26 +62,58 @@ {% block mediagoblin_header_title %}{% endblock %}
{%- if request.user %} - {% if request.user and request.user.status == 'active' %} -
-
- {% elif request.user and request.user.status == "needs_email_verification" %} + {% 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 %} + or {% trans %}log out{% endtrans %} + {% elif request.user and request.user.is_banned() %} + {% trans %}log out{% endtrans %} +

+ + {%- trans %}Terms of Service{%- endtrans %} + +

{% endif %} {%- elif auth %} - + {%- trans %}Log in{% endtrans -%} {%- endif %}
- {% if request.user and request.user.status == 'active' %} + {% if request.user and request.user.has_privilege('active') %}

@@ -93,7 +131,13 @@ {%- trans %}Media processing panel{% endtrans -%} · - {% trans %}Log out{% endtrans %} + {% trans %}Log out{% endtrans %}

{%- trans %}Add media{% endtrans -%} @@ -101,14 +145,26 @@ {%- trans %}Create new collection{% endtrans -%} - {% if request.user.is_admin %} + {% if request.user.has_privilege('admin','moderator') %}

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

{% endif %} +

+ Terms of Service +

+ {% include 'mediagoblin/fragments/header_notifications.html' %}
{% endif %} @@ -119,6 +175,9 @@ {% 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" %}