Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
265ae251
Commit
265ae251
authored
Nov 14, 2018
by
Joost Rijneveld
Committed by
Luko van der Maas
Nov 14, 2018
Browse files
Fix 'older Thabloids' category
The condition was always True, and the class name was incorrect
parent
4abd0880
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/thabloid/templatetags/thabloid_cards.py
View file @
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
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment