Commit 82feedda authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'bugfix/thabloid-older-years' into 'master'

Fix 'older Thabloids' category

Closes #771

See merge request !1059
parents 4abd0880 265ae251
......@@ -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