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 @@ -77,19 +77,19 @@ ## TODO: link to ancestor and head of other instead of exactly other %if op == 'A': ${_('Added')} - ${h.short_id(c.cs_ref_name) if c.cs_ref_type=='rev' else c.cs_ref_name} + ${h.short_ref(c.cs_ref_type, c.cs_ref_name)} %elif op == 'M': - ${h.short_id(c.a_ref_name) if c.a_ref_type=='rev' else c.a_ref_name} + ${h.short_ref(c.a_ref_type, c.a_ref_name)} - ${h.short_id(c.cs_ref_name) if c.cs_ref_type=='rev' else c.cs_ref_name} + ${h.short_ref(c.cs_ref_type, c.cs_ref_name)} %elif op == 'D': ${_('Deleted')} - ${h.short_id(c.a_ref_name) if c.a_ref_type=='rev' else c.a_ref_name} + ${h.short_ref(c.a_ref_type, c.a_ref_name)} %elif op == 'R': ${_('Renamed')} - ${h.short_id(c.a_ref_name) if c.a_ref_type=='rev' else c.a_ref_name} + ${h.short_ref(c.a_ref_type, c.a_ref_name)} - ${h.short_id(c.cs_ref_name) if c.cs_ref_type=='rev' else c.cs_ref_name} + ${h.short_ref(c.cs_ref_type, c.cs_ref_name)} %else: ${op}??? %endif