From 33d7bf641f1b270e9546b2438ab0e9797c450ad6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 12 Mar 2026 15:36:22 -0700 Subject: [PATCH] ui: Use inline SVG icons for all error/warn/info/success messages Tests: - All the icons appear as before in both light/dark themes. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/templates/messages.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plinth/templates/messages.html b/plinth/templates/messages.html index e35a660d7..865521d98 100644 --- a/plinth/templates/messages.html +++ b/plinth/templates/messages.html @@ -3,6 +3,7 @@ {% endcomment %} {% load i18n %} +{% load plinth_extras %} {% for message in messages %}
{% if message.tags == 'danger' %} - + {% icon 'exclamation-triangle' %} {% trans "Error:" %} {% elif message.tags == 'warning' %} - + {% icon 'exclamation-triangle' %} {% trans "Caution:" %} {% elif message.tags == 'info' %} - + {% icon 'info-circle' %} {% trans "Info:" %} {% elif message.tags == 'success' %} - + {% icon 'check-circle' %} {% trans "Success:" %} {% endif %}