[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GMG-Devel] Thumbnail handling branch ready for pulling (issue 533)

From: Sebastian Spaeth
Subject: [GMG-Devel] Thumbnail handling branch ready for pulling (issue 533)
Date: Fri, 09 Nov 2012 10:31:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7

I created to track this.

This is pre-work for the PDF media type handling which is supposed to show default pdf fallback icons in the beginning. It works by adding a MediaEntry.thumb_url property that template designers can use.

Rather than:

{{['thumb']) }}

you can use:
{{ media_entry.thumb_url }}

This is automatically fall back to the static default icon as configured in the media's MEDIA_MANAGER['default_thumb'].

It also adds a default "image" fallback icon (the configured URL did not exist), based on the Public-Domain Tango icon. Our esteemed web designer might want to replace it with a proper "broken image" icon?

Code is tested and works for me. I am bad at writing tests though, not sure how I would write one for this.


The code is in branch get_thumb_url on git://

The patch in question is:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]