Ticket #776: ticket776.patch

File ticket776.patch, 1.1 KB (added by saul, 10 years ago)

Display note as hover text

  • mediagoblin/templates/mediagoblin/utils/collection_gallery.html

    diff --git a/mediagoblin/templates/mediagoblin/utils/collection_gallery.html b/mediagoblin/templates/mediagoblin/utils/collection_gallery.html
    index dfe2ebe..3a67742 100644
    a b  
    3030          <td class="media_thumbnail thumb_entry
    3131                     {%- if loop.first %} thumb_entry_first
    3232                     {%- elif loop.last %} thumb_entry_last{% endif %}">
    33             <a href="{{ entry_url }}">
     33                     <a href="{{ entry_url }}" {% if item.note %}
     34                                                 title="{{ item.note }}"
     35                                                 {% endif %}>
    3436              <img src="{{ media_entry.thumb_url }}" />
    3537            </a>
    3638
    37             {% if item.note %}
    38               <a href="{{ entry_url }}">{{ item.note }}</a>
    39             {% endif %}
     39            <a href="{{ entry_url }}">{{ media_entry.title }}</a>
    4040            {% if request.user and
    4141                  (item.in_collection.creator == request.user.id or
    4242                  request.user.has_privilege('admin')) %}