{% block box-class %}book-wide-box{% endblock %}
{% block picture-view %}
+<a href="{{ main_link }}">
{% thumbnail picture.image_file "535" upscale="false" as thumb %}
-<img class="cover" src="{{thumb.url}}"/>
+<img class="cover" src="{{thumb.url}}"/></a>
{% endthumbnail %}
{% endblock %}
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django import template
+from django.core.urlresolvers import reverse
from catalogue.utils import split_tags
from ..engine import CustomCroppingEngine
import sorl.thumbnail.default
def picture_wide(context, picture):
context.update({
'picture': picture,
- 'main_link': picture.get_absolute_url(),
+ 'main_link': reverse('picture_viewer', args=[picture.slug]),
'request': context.get('request'),
'tags': split_tags(picture.tags),
})