From: Jef van Schendel Date: Sat, 28 May 2011 23:47:12 +0000 (+0200) Subject: Centered image on media page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=37a00748264bc47b5ceb3971622eea4858aef9dd;p=mediagoblin.git Centered image on media page --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 53efd079..5d2189c7 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -138,3 +138,11 @@ a.mediagoblin_logo:hover { margin-top:8px; margin-bottom:8px; } + +/* media pages */ + +img.media_image { + display:block; + margin-left:auto; + margin-right:auto; +} diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 036bf726..475a15ff 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -20,18 +20,17 @@ {# temporarily, an "image gallery" that isn't one really ;) #} {% if media %} -

- Media details for - - {{- media.uploader().username }} - / {{media.title}} -

-
-
+

+ Media details for + + {{- media.uploader().username }} + / {{media.title}} +

Uploaded on {{ "%4d-%02d-%02d"|format(media.created.year, media.created.month, media.created.day) }} @@ -41,7 +40,6 @@ {{- media.uploader().username }}
Description: {{ media.description }} -
{% else %}

Sorry, no such media found.

{% endif %}