From: Jef van Schendel Date: Mon, 27 Jun 2011 20:39:05 +0000 (+0200) Subject: Implement sidebar on media page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a54e5be78ee71dcc2dc5ad3b8aeac27b74c00d9f;p=mediagoblin.git Implement sidebar on media page --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index e39770d5..994903cf 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -174,12 +174,16 @@ a.mediagoblin_logo:hover { /* media pages */ -img.media_image { - display:block; - margin-left:auto; - margin-right:auto; +.media_image{ + width:640px; } +.media_sidebar{ + width:280px; +} + +/* media galleries */ + ul.media_thumbnail { padding:0px; } diff --git a/mediagoblin/templates/mediagoblin/media_details.html b/mediagoblin/templates/mediagoblin/media_details.html index 8cb23e81..b43bea32 100644 --- a/mediagoblin/templates/mediagoblin/media_details.html +++ b/mediagoblin/templates/mediagoblin/media_details.html @@ -19,14 +19,18 @@ {% block mediagoblin_content %} {# temporarily, an "image gallery" that isn't one really ;) #} {% if media %} - -

Media details for {{media.title}}

-
+ +
- -
Uploaded: {{ media.created}} -
Description: {{media.description}} +

Media details for {{media.title}}

+

+
Uploaded: {{ media.created}} +
Description: {{media.description}} +

+
+ {% else %}

Sorry, no such media found.

diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 97ff8e51..fdaa0e2d 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -20,28 +20,33 @@ {# temporarily, an "image gallery" that isn't one really ;) #} {% if media %} -

- {{media.title}} -

- -

- Uploaded on - {{ "%4d-%02d-%02d"|format(media.created.year, - media.created.month, media.created.day) }} - by - - {{- media.uploader().username }} -

- {% autoescape False %} -

{{ media.description_html }}

- {% endautoescape %} - {% if media['uploader'] == request.user['_id'] %} -

Edit

- {% endif %} +
+ +

+ {{media.title}} +

+

+ Uploaded on + {{ "%4d-%02d-%02d"|format(media.created.year, + media.created.month, media.created.day) }} + by + + {{- media.uploader().username }} +

+ {% autoescape False %} +

{{ media.description_html }}

+ {% endautoescape %} + {% if media['uploader'] == request.user['_id'] %} +

Edit

+ {% endif %} +
+
+

This is a sidebar! Yay!

+
{% else %}

Sorry, no such media found.

{% endif %}