Mercurial > kallithea
diff rhodecode/lib/helpers.py @ 1352:79041f2d16f4 beta
wrap_paragraph was to slow for toolip generation and was removed.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 02 Jun 2011 15:11:13 +0200 |
parents | 9dacacc5b7c2 |
children | eec4defdf2b8 |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Thu May 26 01:48:29 2011 +0200 +++ b/rhodecode/lib/helpers.py Thu Jun 02 15:11:13 2011 +0200 @@ -90,8 +90,7 @@ :param tooltip_title: """ - return wrap_paragraphs(escape(tooltip_title), trim_at)\ - .replace('\n', '<br/>') + return escape(tooltip_title) def activate(self): """Adds tooltip mechanism to the given Html all tooltips have to have @@ -269,13 +268,17 @@ return "color: rgb(%s)! important;" % (', '.join(col)) def url_func(repo_name): + def _url_func(changeset): - tooltip_html = "<div style='font-size:0.8em'><b>Author:</b>" + \ - " %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>" + author = changeset.author + date = changeset.date + message = tooltip(changeset.message) - tooltip_html = tooltip_html % (changeset.author, - changeset.date, - tooltip(changeset.message)) + tooltip_html = ("<div style='font-size:0.8em'><b>Author:</b>" + " %s<br/><b>Date:</b> %s</b><br/><b>Message:" + "</b> %s<br/></div>") + + tooltip_html = tooltip_html % (author, date, message) lnk_format = '%5s:%s' % ('r%s' % changeset.revision, short_id(changeset.raw_id)) uri = link_to(