diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -81,8 +81,11 @@ %if len(c.changeset.parents)>1: ${_('merge')} %endif - - ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} + %if c.changeset.branch: + + ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} + + %endif %for tag in c.changeset.tags: ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} diff --git a/rhodecode/templates/shortlog/shortlog_data.html b/rhodecode/templates/shortlog/shortlog_data.html --- a/rhodecode/templates/shortlog/shortlog_data.html +++ b/rhodecode/templates/shortlog/shortlog_data.html @@ -15,7 +15,7 @@
r${cs.revision}:${h.short_id(cs.raw_id)}
- ${h.link_to(h.truncate(cs.message,50), + ${h.link_to(h.truncate(cs.message,50) or _('No commit message'), h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), title=cs.message)} @@ -25,9 +25,11 @@ ${h.person(cs.author)} + %if cs.branch: ${cs.branch} + %endif