Show More
@@ -691,6 +691,8 b' class PullrequestsController(BaseRepoCon' | |||||
691 | c.pull_request, c.rhodecode_user) and not c.pull_request.is_closed() |
|
691 | c.pull_request, c.rhodecode_user) and not c.pull_request.is_closed() | |
692 | c.allowed_to_merge = PullRequestModel().check_user_merge( |
|
692 | c.allowed_to_merge = PullRequestModel().check_user_merge( | |
693 | c.pull_request, c.rhodecode_user) and not c.pull_request.is_closed() |
|
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 | cc_model = ChangesetCommentsModel() |
|
697 | cc_model = ChangesetCommentsModel() | |
696 |
|
698 |
@@ -776,6 +776,9 b' class PullRequestModel(BaseModel):' | |||||
776 | pull_request_id=pull_request.pull_request_id, |
|
776 | pull_request_id=pull_request.pull_request_id, | |
777 | qualified=True) |
|
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 | def notify_reviewers(self, pull_request, reviewers_ids): |
|
782 | def notify_reviewers(self, pull_request, reviewers_ids): | |
780 | # notification to reviewers |
|
783 | # notification to reviewers | |
781 | if not reviewers_ids: |
|
784 | if not reviewers_ids: |
@@ -100,6 +100,25 b'' | |||||
100 | </div> |
|
100 | </div> | |
101 | </div> |
|
101 | </div> | |
102 | </div> |
|
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 | <div class="field"> |
|
122 | <div class="field"> | |
104 | <div class="label-summary"> |
|
123 | <div class="label-summary"> | |
105 | <label>${_('Review')}:</label> |
|
124 | <label>${_('Review')}:</label> |
General Comments 0
You need to be logged in to leave comments.
Login now