add template tag to compute tile picture size

This commit is contained in:
Frédéric Péters 2018-07-02 22:44:38 +02:00
parent cfdce17956
commit aa46104930
1 changed files with 7 additions and 0 deletions

View File

@ -391,6 +391,13 @@ def is_place_page(page):
return page.template_name == 'place'
@register.assignment_tag
def get_tile_picture_size(page):
if is_place_page(page):
return '1300'
return '300x300'
PRODUCER_LABELS = {
'atmo': u'Air Rhône-Alpes',
'onlymoov': u'ONLY MOOV',