diff --git a/kallithea/templates/compare/compare_cs.html b/kallithea/templates/compare/compare_cs.html
--- a/kallithea/templates/compare/compare_cs.html
+++ b/kallithea/templates/compare/compare_cs.html
@@ -40,12 +40,26 @@
%endfor
- %if c.ancestor:
-
${_('Ancestor')}:
+ %if c.as_form:
+
+ ## links should perhaps use ('rev', c.org_rev) instead ...
+ ${h.link_to(_('Show merge diff'),
+ h.url('compare_url',
+ repo_name=c.org_repo.repo_name,
+ org_ref_type=c.org_ref_type, org_ref_name=c.org_ref_name,
+ other_repo=c.other_repo.repo_name,
+ other_ref_type=c.other_ref_type, other_ref_name=c.other_ref_name,
+ merge='1'),
+ )}
+
+
+ ${_('Common ancestor')}:
+ %if c.ancestor:
${h.link_to(h.short_id(c.ancestor),h.url('changeset_home',repo_name=c.repo_name,revision=c.ancestor))}
+ %else:
+ ${_('No common ancestor found - repositories are unrelated')}
+ %endif
- %endif
- %if c.as_form:
${h.hidden('ancestor_rev',c.ancestor)}
${h.hidden('merge_rev',c.cs_ranges[-1].raw_id)}
%endif
diff --git a/kallithea/templates/pullrequests/pullrequest.html b/kallithea/templates/pullrequests/pullrequest.html
--- a/kallithea/templates/pullrequests/pullrequest.html
+++ b/kallithea/templates/pullrequests/pullrequest.html
@@ -124,9 +124,6 @@ ${self.repo_context_bar('showpullrequest
## overview pulled by ajax
-
@@ -199,9 +196,6 @@ ${self.repo_context_bar('showpullrequest
YUD.get('pull_request_overview').innerHTML = "${_('Loading ...')}";
ypjax(url,'pull_request_overview');
-
- YUD.get('pull_request_overview_url').href = url; // shouldn't have as_form ... but ...
- YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','');
}
## refresh automatically when something changes (org_repo can't change)