# HG changeset patch # User Marcin Kuzminski # Date 2011-06-02 13:11:13 # Node ID 79041f2d16f47c5d4de0797b832a170c98d0950a # Parent e0f670b987eb2e6edbd92808d23a8e5854cd7655 wrap_paragraph was to slow for toolip generation and was removed. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -90,8 +90,7 @@ class _ToolTip(object): :param tooltip_title: """ - return wrap_paragraphs(escape(tooltip_title), trim_at)\ - .replace('\n', '
') + return escape(tooltip_title) def activate(self): """Adds tooltip mechanism to the given Html all tooltips have to have @@ -269,13 +268,17 @@ def pygmentize_annotation(repo_name, fil return "color: rgb(%s)! important;" % (', '.join(col)) def url_func(repo_name): + def _url_func(changeset): - tooltip_html = "
Author:" + \ - " %s
Date: %s
Message: %s
" + author = changeset.author + date = changeset.date + message = tooltip(changeset.message) - tooltip_html = tooltip_html % (changeset.author, - changeset.date, - tooltip(changeset.message)) + tooltip_html = ("
Author:" + " %s
Date: %s
Message:" + " %s
") + + tooltip_html = tooltip_html % (author, date, message) lnk_format = '%5s:%s' % ('r%s' % changeset.revision, short_id(changeset.raw_id)) uri = link_to(