changeset 5350:8737030a9550

templates/changeset: display successor changesets
author Sean Farley <sean.michael.farley@gmail.com>
date Tue, 29 Jul 2014 16:15:50 -0500
parents 2978928a95ea
children 78907d9989d6
files kallithea/templates/changeset/changeset.html
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/changeset/changeset.html	Mon Jul 14 21:52:46 2014 -0500
+++ b/kallithea/templates/changeset/changeset.html	Tue Jul 29 16:15:50 2014 -0500
@@ -129,6 +129,21 @@
                        ${_('Transplanted from:')} ${h.link_to(h.short_id(rev),h.url('changeset_home',repo_name=c.repo_name,revision=rev))}
                      </div>
                      %endif
+
+                     % if hasattr(c.changeset, 'successors') and c.changeset.successors:
+                     <div class='successors'>
+                       <span class='successors_header'>${_('Replaced by:')} </span>
+                       % for i, s in enumerate(c.changeset.successors):
+                           <%
+                           comma = ""
+                           if i != len(c.changeset.successors)-1:
+                             comma = ", "
+                           %>
+                         <a class='successors_hash' href="${h.url('changeset_home',repo_name=c.repo_name, revision=s)}">${s}</a>${comma}
+                       % endfor
+                     </div>
+                     % endif
+
                      <div class="message">${h.urlify_commit(c.changeset.message, c.repo_name)}</div>
                 </div>
             </div>