Changeset - 287eff9614fa
[Not reviewed]
beta
0 3 0
Aras Pranckevicius - 14 years ago 2012-01-09 21:40:10
aras@unity3d.com
changelog: make messages be links again, and somewhat co-exist with issue tracker links (those are bold now)
3 files changed with 19 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -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_ = '<a href="' + 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 = '</a>' + 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 + '</a>'
 
            return literal(newtext)
 
    except:
 
        log.error(traceback.format_exc())
 
        pass
 

	
 
    
 

	
 
    return text_
 

	
 

	
rhodecode/public/css/style.css
Show inline comments
 
@@ -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;
 
}
rhodecode/templates/changelog/changelog.html
Show inline comments
 
@@ -59,7 +59,7 @@ ${c.repo_name} ${_('Changelog')} - ${c.r
 
                            <div class="date">${cs.date}</div>
 
						</div>
 
						<div class="mid">
 
                            <div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}</div>
 
                            <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>
 
                            <div class="expand ${'tablerow%s' % (cnt%2)}">&darr; ${_('show more')} &darr;</div>
 
						</div>	
 
						<div class="right">
0 comments (0 inline, 0 general)