changeset 817:09e58532d4f7 beta

fixed some w3c html
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 07 Dec 2010 03:22:15 +0100
parents 555b68f94c45
children 2ef22ee3b45a
files rhodecode/lib/helpers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py	Tue Dec 07 03:08:15 2010 +0100
+++ b/rhodecode/lib/helpers.py	Tue Dec 07 03:22:15 2010 +0100
@@ -485,7 +485,7 @@
     if len(x) > 1:
         action, action_params = x
 
-    tmpl = """<img src="/images/icons/%s">"""
+    tmpl = """<img src="/images/icons/%s" alt="%s"/>"""
     map = {'user_deleted_repo':'database_delete.png',
            'user_created_repo':'database_add.png',
            'user_forked_repo':'arrow_divide.png',
@@ -499,7 +499,7 @@
            'started_following_repo':'heart_add.png',
            'stopped_following_repo':'heart_delete.png',
             }
-    return literal(tmpl % map.get(action, action))
+    return literal(tmpl % (map.get(action, action), action))
 
 
 #==============================================================================