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 @@ -12,14 +12,34 @@ <% url_fid = h.FID(cs_rev, filename) a_repo_name = cs_repo_name = c.repo_name + a_ref_type, a_ref_name = 'rev', a_rev + cs_ref_type, cs_ref_name = 'rev', cs_rev %>
- ${h.link_to_if(op!='D',h.safe_unicode(filename),h.url('files_home',repo_name=cs_repo_name, - revision=cs_rev,f_path=h.safe_unicode(filename)))} + ${h.safe_unicode(filename)} | + ## TODO: link to ancestor and head of other instead of exactly other + %if op == 'A': + ${_('Added')} + ${h.short_ref(cs_ref_type, cs_ref_name)} + %elif op == 'M': + ${h.short_ref(a_ref_type, a_ref_name)} + + ${h.short_ref(cs_ref_type, cs_ref_name)} + %elif op == 'D': + ${_('Deleted')} + ${h.short_ref(a_ref_type, a_ref_name)} + %elif op == 'R': + ${_('Renamed')} + ${h.short_ref(a_ref_type, a_ref_name)} + + ${h.short_ref(cs_ref_type, cs_ref_name)} + %else: + ${op}??? + %endif
+ + + + + + + + + ${c.ignorews_url(request.GET, url_fid)} ${c.context_url(request.GET, url_fid)}