diff --git a/kallithea/templates/changeset/diff_block.html b/kallithea/templates/changeset/diff_block.html --- a/kallithea/templates/changeset/diff_block.html +++ b/kallithea/templates/changeset/diff_block.html @@ -59,9 +59,20 @@
${h.safe_unicode(filenode_path)} | - ${c.org_ref_type}@${h.short_id(c.org_ref_name) if c.org_ref_type=='rev' else c.org_ref_name} - - ${c.other_ref_type}@${h.short_id(c.other_ref_name) if c.other_ref_type=='rev' else c.other_ref_name} + ## TODO: link to ancestor and head of other instead of exactly other + %if op == 'A': + ${_('Added')} + ${h.short_id(c.org_ref_name) if c.org_ref_type=='rev' else c.org_ref_name} + %elif op == 'M': + ${h.short_id(c.org_ref_name) if c.org_ref_type=='rev' else c.org_ref_name} + + ${h.short_id(c.other_ref_name) if c.other_ref_type=='rev' else c.other_ref_name} + %elif op == 'D': + ${_('Deleted')} + ${h.short_id(c.other_ref_name) if c.other_ref_type=='rev' else c.other_ref_name} + %else: + ${op}??? + %endif
%if c.other_repo.repo_name == c.repo_name: