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
0c240866
Commit
0c240866
authored
Mar 14, 2018
by
Luko van der Maas
Browse files
increased amount of events on hompage to six
parent
c7030ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/templatetags/event_cards.py
View file @
0c240866
...
...
@@ -19,11 +19,11 @@ def show_cards(context):
'event'
:
x
,
'current_user_registration'
:
services
.
is_user_registered
(
context
[
'user'
],
x
),
}
for
x
in
upcoming_events
[:
4
]]
}
for
x
in
upcoming_events
[:
6
]]
except
AttributeError
:
upcoming
=
[{
'event'
:
x
,
'current_user_registration'
:
None
}
for
x
in
upcoming_events
[:
4
]]
}
for
x
in
upcoming_events
[:
6
]]
return
{
'upcoming'
:
upcoming
}
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