aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-09 09:19:04 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-09 09:19:04 -0500
commit13ca6fb19549f458aa8a540990b550311c327a86 (patch)
treecb017e296225abf8e3545a7c61a733e72c57b543
parent7b31a11c80afa4f7e819ca102553e5de5c2e4746 (diff)
parent77e63c8f2ebdc1ab61c1e514a489dd392383f22b (diff)
downloadmediagoblin-13ca6fb19549f458aa8a540990b550311c327a86.tar.lz
mediagoblin-13ca6fb19549f458aa8a540990b550311c327a86.tar.xz
mediagoblin-13ca6fb19549f458aa8a540990b550311c327a86.zip
Merge remote branch 'remotes/schendje/master'
-rw-r--r--mediagoblin/static/css/base.css77
-rw-r--r--mediagoblin/static/images/icon.pngbin1670 -> 0 bytes
-rw-r--r--mediagoblin/static/images/logo.pngbin0 -> 839 bytes
-rw-r--r--mediagoblin/static/images/navigation_end.pngbin0 -> 718 bytes
-rw-r--r--mediagoblin/static/images/navigation_left.pngbin0 -> 406 bytes
-rw-r--r--mediagoblin/static/images/navigation_right.pngbin0 -> 383 bytes
-rw-r--r--mediagoblin/static/images/pagination_left.pngbin0 -> 252 bytes
-rw-r--r--mediagoblin/static/images/pagination_right.pngbin0 -> 249 bytes
-rw-r--r--mediagoblin/templates/mediagoblin/base.html8
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/user.html48
-rw-r--r--mediagoblin/templates/mediagoblin/utils/pagination.html17
-rw-r--r--mediagoblin/templates/mediagoblin/utils/prev_next.html13
-rw-r--r--mediagoblin/templates/mediagoblin/utils/profile.html25
13 files changed, 90 insertions, 98 deletions
diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css
index 53e019f6..31b8ebc2 100644
--- a/mediagoblin/static/css/base.css
+++ b/mediagoblin/static/css/base.css
@@ -1,6 +1,6 @@
body {
- background-color: #272727;
- color: #f7f7f7;
+ background-color: #1F1F1F;
+ color: #aaa;
font-family: sans-serif;
padding:none;
margin:0px;
@@ -18,7 +18,7 @@ form {
font-family: 'Carter One';
font-style: normal;
font-weight: normal;
- src: local('CarterOne'), url('http://themes.googleusercontent.com/font?kit=VjW2qt1pkqVtO22ObxgEBRsxEYwM7FgeyaSgU71cLG0') format('woff');
+ src: local('CarterOne'), url('http://themes.googleusercontent.com/font?kit=FWNn6ITYqL6or7ZTmBxRhq3fkYX5z1QtDUdIWoaaD_k') format('woff');
}
/* text styles */
@@ -33,13 +33,8 @@ h2{
margin-top:20px;
}
-p {
- font-family: sans-serif;
- font-size:16px;
-}
-
a {
- color: #86D4B1;
+ color: #fff;
}
label {
@@ -56,15 +51,33 @@ label {
.mediagoblin_header {
width:100%;
height:36px;
- background-color:#393939;
+ background-color:#2F2F2F;
padding-top:14px;
margin-bottom:40px;
}
+.header_submit{
+ color:#272727;
+ 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;
+ border-radius:5px 5px 5px 5px;
+ margin:8px;
+ padding:3px 8px;
+ text-decoration:none;
+ border:medium none;
+ font-family:'Carter One',arial,serif;
+}
+
.mediagoblin_footer {
width:100%;
- height:26px;
- background-color:#393939;
+ height:30px;
+ background-color:#2F2F2F;
bottom:0px;
padding-top:8px;
position:absolute;
@@ -77,19 +90,6 @@ label {
padding-bottom:74px;
}
-a.mediagoblin_logo {
- width:34px;
- height:25px;
- margin-right:10px;
- background-image:url('../images/icon.png');
- background-position:0px 0px;
- display:inline-block;
-}
-
-a.mediagoblin_logo:hover {
- background-position:0px -28px;
-}
-
.mediagoblin_header_right {
float:right;
}
@@ -122,6 +122,10 @@ a.mediagoblin_logo:hover {
text-align:center;
}
+.pagination_arrow{
+ margin:5px;
+}
+
/* forms */
.form_box {
@@ -130,7 +134,7 @@ text-align:center;
background-repeat:repeat-x;
font-size:18px;
padding-bottom:30px;
- padding-top:1px;
+ padding-top:30px;
margin-left:auto;
margin-right:auto;
display:block;
@@ -160,6 +164,7 @@ text-align:center;
.form_field_error {
background-color:#87453b;
+ color:#fff;
border:none;
font-size:16px;
padding:9px;
@@ -204,14 +209,14 @@ img.media_icon{
/* navigation */
.navigation_button{
- width: 139px;
+ width:139px;
display:block;
float:left;
- text-align: center;
- background-color: #393939;
- text-decoration: none;
- padding: 6px 0pt;
- font-family: 'Carter One', arial, serif;
+ text-align:center;
+ background-color:#393939;
+ text-decoration:none;
+ padding:12px 0pt;
+ font-family:'Carter One', arial, serif;
font-size:2em;
margin:0 0 20px
}
@@ -257,11 +262,3 @@ ul.mediagoblin_messages {
background-color: #f7f7f7;
color:#272727;
}
-
-/* profile stuff */
-
-.profile_content {
- padding: 6px;
- background-color: #393939;
- margin-bottom: 10px;
-}
diff --git a/mediagoblin/static/images/icon.png b/mediagoblin/static/images/icon.png
deleted file mode 100644
index 4f4f3e9c..00000000
--- a/mediagoblin/static/images/icon.png
+++ /dev/null
Binary files differ
diff --git a/mediagoblin/static/images/logo.png b/mediagoblin/static/images/logo.png
new file mode 100644
index 00000000..cf28a6d4
--- /dev/null
+++ b/mediagoblin/static/images/logo.png
Binary files differ
diff --git a/mediagoblin/static/images/navigation_end.png b/mediagoblin/static/images/navigation_end.png
new file mode 100644
index 00000000..b2f27296
--- /dev/null
+++ b/mediagoblin/static/images/navigation_end.png
Binary files differ
diff --git a/mediagoblin/static/images/navigation_left.png b/mediagoblin/static/images/navigation_left.png
new file mode 100644
index 00000000..d1645120
--- /dev/null
+++ b/mediagoblin/static/images/navigation_left.png
Binary files differ
diff --git a/mediagoblin/static/images/navigation_right.png b/mediagoblin/static/images/navigation_right.png
new file mode 100644
index 00000000..d4caa7b8
--- /dev/null
+++ b/mediagoblin/static/images/navigation_right.png
Binary files differ
diff --git a/mediagoblin/static/images/pagination_left.png b/mediagoblin/static/images/pagination_left.png
new file mode 100644
index 00000000..56a26596
--- /dev/null
+++ b/mediagoblin/static/images/pagination_left.png
Binary files differ
diff --git a/mediagoblin/static/images/pagination_right.png b/mediagoblin/static/images/pagination_right.png
new file mode 100644
index 00000000..84f8abba
--- /dev/null
+++ b/mediagoblin/static/images/pagination_right.png
Binary files differ
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index b71fca24..40bb085e 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -38,8 +38,12 @@
<div class="container_16">
<div class="grid_16">
{% block mediagoblin_logo %}
- <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"></a>
- {% endblock %}{% block mediagoblin_header_title %}{% endblock %}
+ <a class="mediagoblin_logo" href="{{ request.urlgen('index') }}"><img src="{{ request.staticdirect('/images/logo.png') }}" alt="Mediagoblin logo" /></a>
+ {% 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">
{% if request.user %}
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html
index aed330c8..9d99ac53 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/user.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/user.html
@@ -26,33 +26,25 @@
{% block mediagoblin_content -%}
{% if user %}
- <h1>{{ user.username }}'s profile</h1>
-
- {% include "mediagoblin/utils/profile.html" %}
-
- {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
- <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
- user.username }}">Edit profile</a>
- {% endif %}
-
- {% if request.user['_id'] == user['_id'] %}
- <p>
- <a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a>
- </p>
- {% endif %}
-
- {% 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/>
+ <h1>{{ user.username }}'s profile</h1>
+ <div class="grid_6 alpha">
+ {% include "mediagoblin/utils/profile.html" %}
+ {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %}
+ <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{
+ user.username }}">Edit profile</a>
+ {% endif %}
+ </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/>
+ </div>
{% endif %}
{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/utils/pagination.html b/mediagoblin/templates/mediagoblin/utils/pagination.html
index aae50d22..23d49463 100644
--- a/mediagoblin/templates/mediagoblin/utils/pagination.html
+++ b/mediagoblin/templates/mediagoblin/utils/pagination.html
@@ -34,9 +34,16 @@
{% if pagination.has_prev %}
<a href="{{ pagination.get_page_url_explicit(
base_url, get_params,
- pagination.page - 1) }}">&laquo; Prev</a>
+ pagination.page - 1) }}"><img class="pagination_arrow" src="/mgoblin_static/images/pagination_left.png" alt="Previous page" />Newer</a>
{% endif %}
-
+ {% if pagination.has_next %}
+ <a href="{{ pagination.get_page_url_explicit(
+ base_url, get_params,
+ pagination.page + 1) }}">Older<img class="pagination_arrow" src="/mgoblin_static/images/pagination_right.png" alt="Next page" />
+ </a>
+ {% endif %}
+ <br />
+ Go to page:
{%- for page in pagination.iter_pages() %}
{% if page %}
{% if page != pagination.page %}
@@ -50,12 +57,6 @@
<span class="ellipsis">…</span>
{% endif %}
{%- endfor %}
-
- {% if pagination.has_next %}
- <a href="{{ pagination.get_page_url_explicit(
- base_url, get_params,
- pagination.page + 1) }}">Next &raquo;</a>
- {% endif %}
</p>
</div>
{% endif %}
diff --git a/mediagoblin/templates/mediagoblin/utils/prev_next.html b/mediagoblin/templates/mediagoblin/utils/prev_next.html
index 8908c298..7cf8d2a4 100644
--- a/mediagoblin/templates/mediagoblin/utils/prev_next.html
+++ b/mediagoblin/templates/mediagoblin/utils/prev_next.html
@@ -24,20 +24,23 @@
{# There are no previous entries for the very first media entry #}
{% if prev_entry_url %}
<a class="navigation_button navigation_left" href="{{ prev_entry_url }}">
- &lt;
+ <img src="/mgoblin_static/images/navigation_left.png" alt="Previous image" />
</a>
{% else %}
{# This is the first entry. display greyed-out 'previous' image #}
- <p class="navigation_button">X</p>
+ <p class="navigation_button navigation_left">
+ <img src="/mgoblin_static/images/navigation_end.png" alt="No previous images" />
+ </p>
{% endif %}
-
{# Likewise, this could be the very last media entry #}
{% if next_entry_url %}
<a class="navigation_button" href="{{ next_entry_url }}">
- &gt;
+ <img src="/mgoblin_static/images/navigation_right.png" alt="Next image" />
</a>
{% else %}
{# This is the last entry. display greyed-out 'next' image #}
- <p class="navigation_button">X</p>
+ <p class="navigation_button">
+ <img src="/mgoblin_static/images/navigation_end.png" alt="No following images" />
+ </p>
{% endif %}
</div>
diff --git a/mediagoblin/templates/mediagoblin/utils/profile.html b/mediagoblin/templates/mediagoblin/utils/profile.html
index cd60bbfc..f44defa5 100644
--- a/mediagoblin/templates/mediagoblin/utils/profile.html
+++ b/mediagoblin/templates/mediagoblin/utils/profile.html
@@ -17,19 +17,14 @@
#}
{% block profile_content -%}
- {% if user.url or user.bio %}
- <div class="profile_content">
- {% if user.url %}
- <div class="profile_homepage">
- <a href="{{ user.url }}">{{ user.url }}</a>
- </div>
- {% endif %}
-
- {% if user.bio %}
- <div class="profile_bio">
- {{ user.bio }}
- </div>
- {% endif %}
- </div>
+ {% if user.bio %}
+ <p>
+ {{ user.bio }}
+ </p>
{% endif %}
-{% endblock %}
+ {% if user.url %}
+ <p>
+ <a href="{{ user.url }}">{{ user.url }}</a>
+ </p>
+ {% endif %}
+{% endblock %}