On n'affiche pas de badge si pas d'événement
This commit is contained in:
parent
0da2a9995d
commit
4de99f328c
@ -79,6 +79,9 @@ def show_badge_moderate():
|
|||||||
Q(other_versions__representative__isnull=True)).values("start_day").\
|
Q(other_versions__representative__isnull=True)).values("start_day").\
|
||||||
count()
|
count()
|
||||||
|
|
||||||
|
if nb == 0:
|
||||||
|
return ""
|
||||||
|
else:
|
||||||
return mark_safe('<a href="' + reverse_lazy('moderate') + '" ' +
|
return mark_safe('<a href="' + reverse_lazy('moderate') + '" ' +
|
||||||
' data-placement="bottom" '
|
' data-placement="bottom" '
|
||||||
' data-tooltip="' + str(nb) + ' événements à modérer (7 jours)"' +
|
' data-tooltip="' + str(nb) + ' événements à modérer (7 jours)"' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user