Merge remote-tracking branch 'origin/main'

This commit is contained in:
kdeterme 2026-08-05 12:34:36 +02:00
commit fd54d5765d

View file

@ -331,12 +331,8 @@ StreetUp - Système de tâches planifiées
def is_active_display(self, obj):
"""Affiche le statut avec une icône."""
if obj.is_active:
return format_html(
'<span style="color: green;">✓ Active</span>'
)
return format_html(
'<span style="color: red;">✗ Inactive</span>'
)
return mark_safe('<span style="color: green;">✓ Active</span>')
return mark_safe('<span style="color: red;">✗ Inactive</span>')
is_active_display.short_description = "Statut"
def last_run_display(self, obj):
@ -580,8 +576,8 @@ class CommandExecutionLogAdmin(admin.ModelAdmin):
def email_sent_display(self, obj):
"""Affiche si l'email a été envoyé."""
if obj.email_sent:
return format_html('<span style="color: green;">✓</span>')
return format_html('<span style="color: gray;">-</span>')
return mark_safe('<span style="color: green;">✓</span>')
return mark_safe('<span style="color: gray;">-</span>')
email_sent_display.short_description = "Email"
def output_formatted(self, obj):