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 @@ -74,17 +74,67 @@ ${self.context_bar('changelog')}
${h.age(cs.date,True)}
-
${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
-
↓ ${_('Show more')} ↓
- %if cs.branch: -
-
- ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} -
+
+
${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
+
↓ ${_('Show more')} ↓
+
+ %if (not c.branch_name) and cs.branch: +
+ ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
+ %endif + %for book in cs.bookmarks: +
+ ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
+ + %endfor + %for tag in cs.tags: +
+ ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
+ %endfor + %if len(c.comments.get(cs.raw_id,[])) > 0: + + %endif + <%doc> + %if (h.is_hg(c.rhodecode_repo) and cs.bookmarks) or cs.tags: +
+ %if h.is_hg(c.rhodecode_repo): +
    + ##%if len(cs.parents)>1: + ## ${_('merge')} + ##%endif + + + %for book in cs.bookmarks: +
  • + ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
  • + %endfor + +
+ %endif +
    + %for tag in cs.tags: +
  • + ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
  • + %endfor +
+
+ %endif +
- %endif +
- + <%doc>
@@ -114,36 +164,44 @@ ${self.context_bar('changelog')} %else:
${_('No parents')}
%endif -
- %if len(c.comments.get(cs.raw_id,[])) > 0: + %if len(c.comments.get(cs.raw_id,[])) > 0: + -
- %if len(cs.parents)>1: - ${_('merge')} - %endif - - %if h.is_hg(c.rhodecode_repo): - %for book in cs.bookmarks: - - ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} - - %endfor - %endif - %for tag in cs.tags: - - ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} - - %endfor -
+
+ %endif + %if (h.is_hg(c.rhodecode_repo) and cs.bookmarks) or cs.tags: +
+ %if h.is_hg(c.rhodecode_repo): +
    + ##%if len(cs.parents)>1: + ## ${_('merge')} + ##%endif + + + %for book in cs.bookmarks: +
  • + ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
  • + %endfor + +
+ %endif +
    + %for tag in cs.tags: +
  • + ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} +
  • + %endfor +
+
+ %endif + - %endfor