Ticket #5484: 0001-Fix-5484-Add-video-icon-to-collection-thumbnail.patch

File 0001-Fix-5484-Add-video-icon-to-collection-thumbnail.patch, 1.0 KB (added by ayleph, 8 years ago)
  • mediagoblin/templates/mediagoblin/utils/collection_gallery.html

    From 48129da80a944c57fee7889701b4cf1874eca4f0 Mon Sep 17 00:00:00 2001
    From: Andrew Browning <ayleph@thisshitistemp.com>
    Date: Mon, 17 Oct 2016 12:51:36 -0400
    Subject: [PATCH] Fix #5484 - Add video icon to collection thumbnail
    
    ---
     mediagoblin/templates/mediagoblin/utils/collection_gallery.html | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html
    index 86680cb..498aeb7 100644
    a b  
    3131                     {%- if loop.first %} thumb_entry_first
    3232                     {%- elif loop.last %} thumb_entry_last{% endif %}">
    3333            <a href="{{ obj_url }}">
     34              {% if obj.icon_url %}
     35              <img class="entry_type_icon" src="{{ obj.icon_url }}" />
     36              {% endif %}
    3437              <img src="{{ obj.thumb_url }}" />
    3538            </a>
    3639