]> git.lizzy.rs Git - cheatdb.git/commitdiff
Add title text to audit log severity icons
authorrubenwardy <rw@rubenwardy.com>
Sat, 11 Jul 2020 03:11:32 +0000 (04:11 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sat, 11 Jul 2020 03:14:57 +0000 (04:14 +0100)
app/templates/admin/audit.html

index 1ac793b5e8474d457d76a56c9f9ce42306f7eb93..49e2aaf8845754064ae8f6eb859044fcd750fc8e 100644 (file)
@@ -17,7 +17,8 @@ Audit Log
                                {% endif %}
 
                                <div class="row {% if entry.severity == entry.severity.NORMAL %}text-muted{% endif %}">
-                                       <div class="col-sm-auto text-center" style="width: 50px;">
+                                       <div class="col-sm-auto text-center" style="width: 50px;"
+                                                       title="{{ _('Severity: %(sev)s.', sev=entry.severity.getTitle()) }}">
                                                {% if entry.severity == entry.severity.MODERATION %}
                                                        <i class="fas fa-exclamation-triangle" style="color: yellow;"></i>
                                                {% elif entry.severity == entry.severity.EDITOR %}