aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-08-21 23:10:12 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-08-21 23:10:12 -0500
commitec451724ccd436f758fabb67e1e872f002acf4d5 (patch)
treeb44850aab4e179fd01b9a0d7a383253c564afc18 /mediagoblin/templates
parent7a8ad8187c22f96604fda3a9a63f2b0e70d3aca0 (diff)
downloadmediagoblin-ec451724ccd436f758fabb67e1e872f002acf4d5.tar.lz
mediagoblin-ec451724ccd436f758fabb67e1e872f002acf4d5.tar.xz
mediagoblin-ec451724ccd436f758fabb67e1e872f002acf4d5.zip
Add titles to media entries in galleries
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/utils/object_gallery.html7
1 files changed, 6 insertions, 1 deletions
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) %}
<td class="media_thumbnail thumb_entry
{%- if loop.first %} thumb_entry_first
{%- elif loop.last %} thumb_entry_last{% endif %}">
- <a href="{{ entry.url_for_self(request.urlgen) }}">
+ <a href="{{ entry_url }}">
<img src="{{ request.app.public_store.file_url(
entry['media_files']['thumb']) }}" />
</a>
+ {% if entry['title'] %}
+ <br />
+ <a href="{{ entry_url }}">{{ entry['title'] }}</a>
+ {% endif %}
</td>
{% endfor %}
</tr>