Mercurial > kallithea
diff rhodecode/lib/helpers.py @ 1050:cabe887a9829 beta
removed obsolete _static flag from url, and fixed urls in webhelpers
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 15 Feb 2011 18:52:08 +0100 |
parents | 3fc9183e05dd |
children | c96651aebd8a |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Tue Feb 15 18:37:56 2011 +0100 +++ b/rhodecode/lib/helpers.py Tue Feb 15 18:52:08 2011 +0100 @@ -412,10 +412,12 @@ """ if value is True: - return HTML.tag('img', src="/images/icons/accept.png", alt=_('True')) + return HTML.tag('img', src=url("/images/icons/accept.png"), + alt=_('True')) if value is False: - return HTML.tag('img', src="/images/icons/cancel.png", alt=_('False')) + return HTML.tag('img', src=url("/images/icons/cancel.png"), + alt=_('False')) return value @@ -518,7 +520,7 @@ if len(x) > 1: action, action_params = x - tmpl = """<img src="/images/icons/%s" alt="%s"/>""" + tmpl = """<img src="%s/%s" alt="%s"/>""" map = {'user_deleted_repo':'database_delete.png', 'user_created_repo':'database_add.png', 'user_forked_repo':'arrow_divide.png', @@ -532,7 +534,8 @@ 'started_following_repo':'heart_add.png', 'stopped_following_repo':'heart_delete.png', } - return literal(tmpl % (map.get(action, action), action)) + return literal(tmpl % ((url('/images/icons/')), + map.get(action, action), action)) #==============================================================================