Show More
@@ -78,6 +78,7 b' class CompareController(BaseRepoControll' | |||||
78 |
|
78 | |||
79 | c.statuses = c.rhodecode_db_repo.statuses([x.raw_id for x in |
|
79 | c.statuses = c.rhodecode_db_repo.statuses([x.raw_id for x in | |
80 | c.cs_ranges]) |
|
80 | c.cs_ranges]) | |
|
81 | c.target_repo = c.repo_name | |||
81 | # defines that we need hidden inputs with changesets |
|
82 | # defines that we need hidden inputs with changesets | |
82 | c.as_form = request.GET.get('as_form', False) |
|
83 | c.as_form = request.GET.get('as_form', False) | |
83 | if request.environ.get('HTTP_X_PARTIAL_XHR'): |
|
84 | if request.environ.get('HTTP_X_PARTIAL_XHR'): |
@@ -246,7 +246,7 b' class PullrequestsController(BaseRepoCon' | |||||
246 | c.pull_request_reviewers |
|
246 | c.pull_request_reviewers | |
247 | ) |
|
247 | ) | |
248 | c.changeset_statuses = ChangesetStatus.STATUSES |
|
248 | c.changeset_statuses = ChangesetStatus.STATUSES | |
249 |
|
249 | c.target_repo = c.pull_request.org_repo.repo_name | ||
250 | return render('/pullrequests/pullrequest_show.html') |
|
250 | return render('/pullrequests/pullrequest_show.html') | |
251 |
|
251 | |||
252 | @jsonify |
|
252 | @jsonify |
@@ -12,7 +12,7 b'' | |||||
12 | <div title="${c.statuses[cs.raw_id][1]}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cs.raw_id][0])}" /></div> |
|
12 | <div title="${c.statuses[cs.raw_id][1]}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cs.raw_id][0])}" /></div> | |
13 | %endif |
|
13 | %endif | |
14 | </td> |
|
14 | </td> | |
15 |
<td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c. |
|
15 | <td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.target_repo,revision=cs.raw_id))} | |
16 | %if c.as_form: |
|
16 | %if c.as_form: | |
17 | ${h.hidden('revisions',cs.raw_id)} |
|
17 | ${h.hidden('revisions',cs.raw_id)} | |
18 | %endif |
|
18 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now