From 681e137194ec68632e0feb54955f2e23c0c7ed71 Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Fri, 8 Jul 2011 15:53:45 +0200 Subject: [PATCH] Moved Submit button to header, styled button --- mediagoblin/static/css/base.css | 17 +++++++ mediagoblin/templates/mediagoblin/base.html | 6 ++- .../mediagoblin/user_pages/user.html | 51 +++++++------------ 3 files changed, 41 insertions(+), 33 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 9dc6444b..1cc26cad 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -56,6 +56,23 @@ label { margin-bottom:40px; } +.header_submit{ + background-color:#aaa; + background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa)); + background-image: -webkit-linear-gradient(top, #D2D2D2, #aaa); + background-image: -moz-linear-gradient(top, #D2D2D2, #aaa); + background-image: -ms-linear-gradient(top, #D2D2D2, #aaa); + background-image: -o-linear-gradient(top, #D2D2D2, #aaa); + background-image: linear-gradient(top, #D2D2D2, #aaa); + box-shadow:0px 0px 4px #000; + color:#272727; + border-radius:5px 5px 5px 5px; + padding:5px 8px; + text-decoration:none; + border:medium none; + font-family:'Carter One',arial,serif; +} + .mediagoblin_footer { width:100%; height:26px; diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index b71fca24..d6890ac0 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -39,7 +39,11 @@
{% block mediagoblin_logo %} - {% endblock %}{% block mediagoblin_header_title %}{% endblock %} + {% endblock %} + {% if request.user %} + Submit media + {% endif %} + {% block mediagoblin_header_title %}{% endblock %}
{% if request.user %} - {% include "mediagoblin/utils/profile.html" %} - - {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} - Edit profile - {% endif %} - - {% if request.user['_id'] == user['_id'] %} -

- Submit an item -

- {% endif %} +

{{ user.username }}'s profile

+
+ {% include "mediagoblin/utils/profile.html" %} + {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} + Edit profile + {% endif %} +
+
+ {% set pagination_base_url = user_gallery_url %} + {% include "mediagoblin/utils/object_gallery.html" %} +
+

View all of {{ user.username }}'s media

+ atom feed + {% else %} + {# This *should* not occur as the view makes sure we pass in a user. #} +

Sorry, no such user found.

-
- - {% set pagination_base_url = user_gallery_url %} - {% include "mediagoblin/utils/object_gallery.html" %} - -
- -

View all of {{ user.username }}'s media

- - atom feed - {% else %} - {# This *should* not occur as the view makes sure we pass in a user. #} -

Sorry, no such user found.

{% endif %} - -

{% endblock %} -- 2.25.1