##// END OF EJS Templates
wrap_paragraph was to slow for toolip generation and was removed.
marcink -
r1352:79041f2d beta
parent child Browse files
Show More
@@ -90,8 +90,7 b' class _ToolTip(object):'
90 90 :param tooltip_title:
91 91 """
92 92
93 return wrap_paragraphs(escape(tooltip_title), trim_at)\
94 .replace('\n', '<br/>')
93 return escape(tooltip_title)
95 94
96 95 def activate(self):
97 96 """Adds tooltip mechanism to the given Html all tooltips have to have
@@ -269,13 +268,17 b' def pygmentize_annotation(repo_name, fil'
269 268 return "color: rgb(%s)! important;" % (', '.join(col))
270 269
271 270 def url_func(repo_name):
271
272 272 def _url_func(changeset):
273 tooltip_html = "<div style='font-size:0.8em'><b>Author:</b>" + \
274 " %s<br/><b>Date:</b> %s</b><br/><b>Message:</b> %s<br/></div>"
273 author = changeset.author
274 date = changeset.date
275 message = tooltip(changeset.message)
275 276
276 tooltip_html = tooltip_html % (changeset.author,
277 changeset.date,
278 tooltip(changeset.message))
277 tooltip_html = ("<div style='font-size:0.8em'><b>Author:</b>"
278 " %s<br/><b>Date:</b> %s</b><br/><b>Message:"
279 "</b> %s<br/></div>")
280
281 tooltip_html = tooltip_html % (author, date, message)
279 282 lnk_format = '%5s:%s' % ('r%s' % changeset.revision,
280 283 short_id(changeset.raw_id))
281 284 uri = link_to(
General Comments 0
You need to be logged in to leave comments. Login now