Headers for collection items
authorBoris Bobrov <breton@cynicmansion.ru>
Sun, 29 Jan 2017 16:29:39 +0000 (19:29 +0300)
committerBoris Bobrov <breton@cynicmansion.ru>
Sun, 29 Jan 2017 16:29:39 +0000 (19:29 +0300)
Fixes issue #776

mediagoblin/templates/mediagoblin/utils/collection_gallery.html

index 498aeb77fcc5e979ce3d7b4dcbb82546b95811da..8a3f7a75c5f06f6cb6d4b04884369c4dfc469ae7 100644 (file)
               <img src="{{ obj.thumb_url }}" />
             </a>
 
+           {% if obj.title %}
+           <a href="{{ obj_url }}">{{ obj.title }}</a>
+           {% endif %}
             {% if item.note %}
-              <a href="{{ obj_url }}">{{ item.note }}</a>
+             {{ item.note }}
             {% endif %}
            {% if request.user and
                   (item.in_collection.actor == request.user.id or