Improved dropdown styling, part deux
authorJef van Schendel <mail@jefvanschendel.nl>
Sun, 24 Feb 2013 20:09:16 +0000 (21:09 +0100)
committerJef van Schendel <mail@jefvanschendel.nl>
Sun, 24 Feb 2013 20:09:16 +0000 (21:09 +0100)
mediagoblin/static/css/base.css
mediagoblin/templates/mediagoblin/base.html

index 7de7a7d08ed97cfef9830115a31f922d2f4cf440..8df9f2e19397b7f8ac3e72765d30c16abf10d310 100644 (file)
@@ -136,6 +136,11 @@ header {
   list-style: none;
 }
 
+.header_dropdown p {
+  margin-top: 12px;
+  margin-bottom: 10px;
+}
+
 .dropdown_title {
   font-size: 20px;
 }
index 068af79a6807c027e7ab7f21aaa01bdb91aa8c9e..13433b33c7befe544150b50e1258bcbbc9dd6745 100644 (file)
                            user_name=request.user.username -%}
                     <a href="{{ user_url }}">{{ user_name }}</a>'s account
                   {%- endtrans %}
-                </span> &middot;
-                <a href="{{ request.urlgen('mediagoblin.edit.account') }}">{%- trans %}Change account settings{% endtrans -%}</a> &middot; 
-            <a href="{{ request.urlgen('mediagoblin.user_pages.processing_panel',
+                </span>
+                &middot;
+                <a href="{{ request.urlgen('mediagoblin.edit.account') }}">{%- trans %}Change account settings{% endtrans -%}</a>
+                &middot;
+                <a href="{{ request.urlgen('mediagoblin.user_pages.processing_panel',
                                              user=request.user.username) }}">
-                {%- trans %}Media processing panel{% endtrans -%}
-              </a> &middot; <a href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}Log out{% endtrans %}</a>
+                  {%- trans %}Media processing panel{% endtrans -%}
+                </a>
+                &middot;
+                <a href="{{ request.urlgen('mediagoblin.auth.logout') }}">{% trans %}Log out{% endtrans %}</a>
               </p>
-            <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.start') }}">
+              <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.start') }}">
                 {%- trans %}Add media{% endtrans -%}
               </a>
-            <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.collection') }}">
+              <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.collection') }}">
                 {%- trans %}Create new collection{% endtrans -%}
               </a>
-           
-              
               {% if request.user.is_admin %}
-                <a href="{{ request.urlgen('mediagoblin.admin.panel') }}">
-                      {%- trans %}Media processing panel{% endtrans -%}
-                    </a>
+                <p>
+                  <span class="dropdown_title">Admin powers:</span>
+                  <a href="{{ request.urlgen('mediagoblin.admin.panel') }}">
+                    {%- trans %}Media processing panel{% endtrans -%}
+                  </a>
+                </p>
               {% endif %}
             </div>
           {% endif %}