[checkmk-commits] Cleaned up handcrafted icon rendering

Lars Michelsen lm at mathias-kettner.de
Mon May 23 14:47:39 CEST 2016


Module: check_mk
Branch: master
Commit: dd012e663b124d79b8982bcc89eb27165db915fb
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dd012e663b124d79b8982bcc89eb27165db915fb

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon May 23 14:47:35 2016 +0200

Cleaned up handcrafted icon rendering

---

 web/htdocs/wato.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9bb12bc..a3210da 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4766,8 +4766,8 @@ def render_audit_log(log, what, with_filename = False, hilite_others=False):
         htmlcode += '<td class=nobreak>'
         user = user == '-' and ('<i>%s</i>' % _('internal')) or user
         if hilite:
-            htmlcode += '<img class=icon src="images/icon_foreign_changes.png" title="%s">' \
-                     % _("This change has been made by another user")
+            htmlcode += html.render_icon("foreign_changes",
+                            _("This change has been made by another user"))
         htmlcode += user + '</td>'
 
         htmlcode += '</td><td width="100%%">%s</td></tr>\n' % html.attrencode(text)



More information about the checkmk-commits mailing list