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
AE UTBM
Sith
Commits
a008f342
Commit
a008f342
authored
Sep 28, 2016
by
Sli
Browse files
Fix bug where slots appears when slot expired
parent
fd482195
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/templates/core/macros.jinja
View file @
a008f342
...
...
@@ -35,7 +35,7 @@
{%
-
endmacro
%}
{%
macro
show_slots
(
user
)
%}
{%
if
get_subscriber
(
user
)
.
slots.exists
()
%}
{%
if
get_subscriber
(
user
)
.
slots.
filter
(
start_date__gte
=
timezone.now
())
.
exists
()
%}
<h5>
{%
trans
%}
Slot
{%
endtrans
%}
</h5>
<ul>
{%
for
i
in
get_subscriber
(
user
)
.
slots.
filter
(
start_date__gte
=
timezone.now
()
.
replace
(
tzinfo
=
None
))
.
all
()
%}
...
...
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