From 3afe739c410bb64b29ee4b1c8da4894cbabf00ca Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Sun, 2 Dec 2012 02:19:20 +0100 Subject: [PATCH] Several edits to header dropdown: - Style the up/down arrow as a button - Remove the Actions header - Remove redundant original "Add media" button - Style "Add media" and "Create new collection" links as buttons --- mediagoblin/templates/mediagoblin/base.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 0717e7ba..fe383334 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -53,12 +53,9 @@ {% block mediagoblin_header_title %}{% endblock %}
{% if request.user %} - {{ request.user.username }}{% trans %}'s account{% endtrans %} - ({% trans %}log out{% endtrans %}) {% if request.user and request.user.status == 'active' %} - {% trans %}Add media{% endtrans %} -
-
+
+
{% elif request.user and request.user.status == "needs_email_verification" %} {# the following link should only appear when verification is needed #}
{% if request.user.status == 'active' %}
-

{% trans %}Actions{% endtrans %}

+
{{ request.user.username }}{% trans %}'s account{% endtrans %} + ({% trans %}log out{% endtrans %})