Show More
@@ -691,6 +691,8 b' class PullrequestsController(BaseRepoCon' | |||
|
691 | 691 | c.pull_request, c.rhodecode_user) and not c.pull_request.is_closed() |
|
692 | 692 | c.allowed_to_merge = PullRequestModel().check_user_merge( |
|
693 | 693 | c.pull_request, c.rhodecode_user) and not c.pull_request.is_closed() |
|
694 | c.shadow_clone_url = PullRequestModel().get_shadow_clone_url( | |
|
695 | c.pull_request) | |
|
694 | 696 | |
|
695 | 697 | cc_model = ChangesetCommentsModel() |
|
696 | 698 |
@@ -776,6 +776,9 b' class PullRequestModel(BaseModel):' | |||
|
776 | 776 | pull_request_id=pull_request.pull_request_id, |
|
777 | 777 | qualified=True) |
|
778 | 778 | |
|
779 | def get_shadow_clone_url(self, pull_request): | |
|
780 | return u'{url}/repository'.format(url=self.get_url(pull_request)) | |
|
781 | ||
|
779 | 782 | def notify_reviewers(self, pull_request, reviewers_ids): |
|
780 | 783 | # notification to reviewers |
|
781 | 784 | if not reviewers_ids: |
@@ -100,6 +100,25 b'' | |||
|
100 | 100 | </div> |
|
101 | 101 | </div> |
|
102 | 102 | </div> |
|
103 | ||
|
104 | ## Clone link of the shadow repository. | |
|
105 | %if not c.pull_request.is_closed(): | |
|
106 | <div class="field"> | |
|
107 | <div class="label-summary"> | |
|
108 | <label>${_('Shadow')}:</label> | |
|
109 | </div> | |
|
110 | <div class="input"> | |
|
111 | <div class="pr-shadowinfo"> | |
|
112 | %if h.is_hg(c.pull_request.target_repo): | |
|
113 | <input type="text" value="hg clone ${c.shadow_clone_url}" readonly="readonly"> | |
|
114 | %elif h.is_git(c.pull_request.target_repo): | |
|
115 | <input type="text" value="git clone ${c.shadow_clone_url}" readonly="readonly"> | |
|
116 | %endif | |
|
117 | </div> | |
|
118 | </div> | |
|
119 | </div> | |
|
120 | %endif | |
|
121 | ||
|
103 | 122 | <div class="field"> |
|
104 | 123 | <div class="label-summary"> |
|
105 | 124 | <label>${_('Review')}:</label> |
General Comments 0
You need to be logged in to leave comments.
Login now