# HG changeset patch # User Aras Pranckevicius # Date 2012-01-09 20:40:10 # Node ID 287eff9614fae8c29cd1bb818ab2f6e5ec68cc9e # Parent 395a3196de73aeef5924494a1b0a946f7864d47d changelog: make messages be links again, and somewhat co-exist with issue tracker links (those are bold now) diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -744,10 +744,13 @@ def urlify_text(text_): return literal(url_pat.sub(url_func, text_)) -def urlify_commit(text_, repository=None): +def urlify_commit(text_, repository=None, link_=None): import re import traceback + if link_: + link_ = '' + try: conf = config['app_conf'] @@ -768,6 +771,9 @@ def urlify_commit(text_, repository=None if repository: url = url.replace('{repo}', repository) + if link_: + tmpl = '' + tmpl + link_ + return tmpl % ( { 'cls': 'issue-tracker-link', @@ -777,11 +783,16 @@ def urlify_commit(text_, repository=None 'serv': ISSUE_SERVER_LNK, } ) - return literal(URL_PAT.sub(url_func, text_)) + newtext = URL_PAT.sub(url_func, text_) + if link_: + newtext = link_ + newtext + '' + return literal(newtext) except: log.error(traceback.format_exc()) pass + + return text_ diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -2322,6 +2322,11 @@ h3.files_location { text-decoration: none; } +#content #graph_content .message .issue-tracker-link { + font-weight: bold !important; +} + + .right div { clear: both; } diff --git a/rhodecode/templates/changelog/changelog.html b/rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html +++ b/rhodecode/templates/changelog/changelog.html @@ -59,7 +59,7 @@
${cs.date}
-
${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}
+
${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
↓ ${_('show more')} ↓