{% comment %} Displays an image for a page like publication_detail or event_detail. Expects: * obj - The object whose thumbnail we're showing. * alt_text - The text to use as the image's `alt` text. {% endcomment %} {% with link_url=url|default:obj.thumbnail.url %} {{ alt_text }} {% endwith %}