Moved Submit button to header, styled button
This commit is contained in:
parent
cdc8cb285d
commit
681e137194
@ -56,6 +56,23 @@ label {
|
|||||||
margin-bottom:40px;
|
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 {
|
.mediagoblin_footer {
|
||||||
width:100%;
|
width:100%;
|
||||||
height:26px;
|
height:26px;
|
||||||
|
@ -39,7 +39,11 @@
|
|||||||
<div class="grid_16">
|
<div class="grid_16">
|
||||||
{% block mediagoblin_logo %}
|
{% block mediagoblin_logo %}
|
||||||
<a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"></a>
|
<a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"></a>
|
||||||
{% endblock %}{% block mediagoblin_header_title %}{% endblock %}
|
{% endblock %}
|
||||||
|
{% if request.user %}
|
||||||
|
<a class="header_submit" href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit media</a>
|
||||||
|
{% endif %}
|
||||||
|
{% block mediagoblin_header_title %}{% endblock %}
|
||||||
<div class="mediagoblin_header_right">
|
<div class="mediagoblin_header_right">
|
||||||
{% if request.user %}
|
{% if request.user %}
|
||||||
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||||
|
@ -26,38 +26,25 @@
|
|||||||
|
|
||||||
{% block mediagoblin_content -%}
|
{% block mediagoblin_content -%}
|
||||||
{% if user %}
|
{% if user %}
|
||||||
<h1>{{ user.username }}'s profile</h1>
|
<h1>{{ user.username }}'s profile</h1>
|
||||||
|
<div class="grid_6 alpha">
|
||||||
<div class="grid_6 alpha">
|
{% include "mediagoblin/utils/profile.html" %}
|
||||||
{% include "mediagoblin/utils/profile.html" %}
|
{% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
|
||||||
|
<a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
|
||||||
{% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
|
user.username }}">Edit profile</a>
|
||||||
<a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
|
{% endif %}
|
||||||
user.username }}">Edit profile</a>
|
</div>
|
||||||
{% endif %}
|
<div class="grid_10 omega">
|
||||||
|
{% set pagination_base_url = user_gallery_url %}
|
||||||
{% if request.user['_id'] == user['_id'] %}
|
{% include "mediagoblin/utils/object_gallery.html" %}
|
||||||
<p>
|
<div class="clear"></div>
|
||||||
<a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a>
|
<p><a href="{{ user_gallery_url }}">View all of {{ user.username }}'s media</a></p>
|
||||||
</p>
|
<a href={{ request.urlgen(
|
||||||
{% endif %}
|
'mediagoblin.user_pages.atom_feed',
|
||||||
|
user=user.username) }}>atom feed</a>
|
||||||
|
{% else %}
|
||||||
|
{# This *should* not occur as the view makes sure we pass in a user. #}
|
||||||
|
<p>Sorry, no such user found.<p/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_10 omega">
|
|
||||||
|
|
||||||
{% set pagination_base_url = user_gallery_url %}
|
|
||||||
{% include "mediagoblin/utils/object_gallery.html" %}
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
|
||||||
|
|
||||||
<p><a href="{{ user_gallery_url }}">View all of {{ user.username }}'s media</a></p>
|
|
||||||
|
|
||||||
<a href={{ request.urlgen(
|
|
||||||
'mediagoblin.user_pages.atom_feed',
|
|
||||||
user=user.username) }}>atom feed</a>
|
|
||||||
{% else %}
|
|
||||||
{# This *should* not occur as the view makes sure we pass in a user. #}
|
|
||||||
<p>Sorry, no such user found.<p/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user