# HG changeset patch # User Martin Bornhold # Date 2016-10-23 12:38:52 # Node ID 073ad72a4132349ebf34053b9cf7645a49545ea2 # Parent 0b66694274ca5d8bbc4a2d66ad94f7d9fa6bd511 pr-shadow: Display link to last merge revision in shadow repository if merge was successful. #1055 diff --git a/rhodecode/templates/pullrequests/pullrequest_show.html b/rhodecode/templates/pullrequests/pullrequest_show.html --- a/rhodecode/templates/pullrequests/pullrequest_show.html +++ b/rhodecode/templates/pullrequests/pullrequest_show.html @@ -101,23 +101,23 @@ - ## Clone link of the shadow repository. - %if not c.pull_request.is_closed(): -
-
- -
-
-
- %if h.is_hg(c.pull_request.target_repo): - - %elif h.is_git(c.pull_request.target_repo): - - %endif -
-
-
- %endif + ## Link to the shadow repository. + %if not c.pull_request.is_closed() and c.pull_request.last_merge_rev: +
+
+ +
+
+
+ %if h.is_hg(c.pull_request.target_repo): + + %elif h.is_git(c.pull_request.target_repo): + + %endif +
+
+
+ %endif