Mercurial > kallithea
changeset 6396:a955c3b26d31
templates: drop unused and invalid attributes
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 06 Jan 2017 01:43:50 +0100 |
parents | c4379e4dc820 |
children | 3509e025b2e5 |
files | kallithea/lib/helpers.py kallithea/templates/changeset/changeset_file_comment.html |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/helpers.py Fri Jan 06 01:43:50 2017 +0100 +++ b/kallithea/lib/helpers.py Fri Jan 06 01:43:50 2017 +0100 @@ -766,9 +766,9 @@ if len(x) > 1: action, action_params = x - tmpl = """<i class="%s" alt="%s"></i>""" ico = action_map.get(action, ['', '', ''])[2] - return literal(tmpl % (ico, action)) + html = """<i class="%s"></i>""" % ico + return literal(html) # returned callbacks we need to call to get return [lambda: literal(action), action_params_func, action_parser_icon]
--- a/kallithea/templates/changeset/changeset_file_comment.html Fri Jan 06 01:43:50 2017 +0100 +++ b/kallithea/templates/changeset/changeset_file_comment.html Fri Jan 06 01:43:50 2017 +0100 @@ -4,7 +4,7 @@ ## ${comment.comment_block(co)} ## <%def name="comment_block(co)"> - <div class="comment" id="comment-${co.comment_id}" line="${co.line_no}"> + <div class="comment" id="comment-${co.comment_id}"> <div class="comment-prev-next-links"></div> <div class="comment-wrapp"> <div class="meta">