Merge branch 'video_gstreamer-only'
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / object_gallery.html
index b451946d601de888d53673efb1ca1acffa176ad4..e1b8cc9bafc93b0295c9558adc022cbc594006a1 100644 (file)
@@ -1,6 +1,6 @@
 {#
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
                  {%- 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>