Commit 265ae251 authored by Joost Rijneveld's avatar Joost Rijneveld Committed by Luko van der Maas
Browse files

Fix 'older Thabloids' category

The condition was always True, and the class name was incorrect
parent 4abd0880
......@@ -9,8 +9,8 @@ register = template.Library()
@register.inclusion_tag('includes/grid_item.html')
def thabloid_card(year, thabloid):
class_name = 'older'
if thabloid.year - 3 < year:
class_name = 'year-older'
if thabloid.year >= year - 3:
class_name = 'year-{}'.format(thabloid.year)
view_url = reverse('thabloid:pages', args=[thabloid.year, thabloid.issue])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment