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