Show More
@@ -744,10 +744,13 b' def urlify_text(text_):' | |||
|
744 | 744 | return literal(url_pat.sub(url_func, text_)) |
|
745 | 745 | |
|
746 | 746 | |
|
747 | def urlify_commit(text_, repository=None): | |
|
747 | def urlify_commit(text_, repository=None, link_=None): | |
|
748 | 748 | import re |
|
749 | 749 | import traceback |
|
750 | 750 | |
|
751 | if link_: | |
|
752 | link_ = '<a href="' + link_ + '">' | |
|
753 | ||
|
751 | 754 | try: |
|
752 | 755 | conf = config['app_conf'] |
|
753 | 756 | |
@@ -768,6 +771,9 b' def urlify_commit(text_, repository=None' | |||
|
768 | 771 | if repository: |
|
769 | 772 | url = url.replace('{repo}', repository) |
|
770 | 773 | |
|
774 | if link_: | |
|
775 | tmpl = '</a>' + tmpl + link_ | |
|
776 | ||
|
771 | 777 | return tmpl % ( |
|
772 | 778 | { |
|
773 | 779 | 'cls': 'issue-tracker-link', |
@@ -777,11 +783,16 b' def urlify_commit(text_, repository=None' | |||
|
777 | 783 | 'serv': ISSUE_SERVER_LNK, |
|
778 | 784 | } |
|
779 | 785 | ) |
|
780 |
|
|
|
786 | newtext = URL_PAT.sub(url_func, text_) | |
|
787 | if link_: | |
|
788 | newtext = link_ + newtext + '</a>' | |
|
789 | return literal(newtext) | |
|
781 | 790 | except: |
|
782 | 791 | log.error(traceback.format_exc()) |
|
783 | 792 | pass |
|
784 | 793 | |
|
794 | ||
|
795 | ||
|
785 | 796 | return text_ |
|
786 | 797 | |
|
787 | 798 |
@@ -2322,6 +2322,11 b' h3.files_location {' | |||
|
2322 | 2322 | text-decoration: none; |
|
2323 | 2323 | } |
|
2324 | 2324 | |
|
2325 | #content #graph_content .message .issue-tracker-link { | |
|
2326 | font-weight: bold !important; | |
|
2327 | } | |
|
2328 | ||
|
2329 | ||
|
2325 | 2330 | .right div { |
|
2326 | 2331 | clear: both; |
|
2327 | 2332 | } |
@@ -59,7 +59,7 b'' | |||
|
59 | 59 | <div class="date">${cs.date}</div> |
|
60 | 60 | </div> |
|
61 | 61 | <div class="mid"> |
|
62 | <div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}</div> | |
|
62 | <div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div> | |
|
63 | 63 | <div class="expand ${'tablerow%s' % (cnt%2)}">↓ ${_('show more')} ↓</div> |
|
64 | 64 | </div> |
|
65 | 65 | <div class="right"> |
General Comments 0
You need to be logged in to leave comments.
Login now