Skip to content
GitLab
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
82feedda
Commit
82feedda
authored
Nov 14, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/thabloid/templatetags/thabloid_cards.py
View file @
82feedda
...
...
@@ -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
.
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