From: Christopher Allan Webber Date: Mon, 22 Aug 2011 04:10:12 +0000 (-0500) Subject: Add titles to media entries in galleries X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ec451724ccd436f758fabb67e1e872f002acf4d5;p=mediagoblin.git Add titles to media entries in galleries --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 51a855be..af8f7763 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -244,6 +244,11 @@ text-align: center; text-align: center; } +.media_thumbnail a { + color: #eee; + text-decoration: none; +} + /* media detail */ h2.media_title{ diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html index b451946d..34eb7dbc 100644 --- a/mediagoblin/templates/mediagoblin/utils/object_gallery.html +++ b/mediagoblin/templates/mediagoblin/utils/object_gallery.html @@ -25,13 +25,18 @@ {%- if loop.first %} thumb_row_first {%- elif loop.last %} thumb_row_last{% endif %}"> {% for entry in row %} + {% set entry_url = entry.url_for_self(request.urlgen) %} - + + {% if entry['title'] %} +
+ {{ entry['title'] }} + {% endif %} {% endfor %}