Mercurial > kallithea
comparison rhodecode/templates/pullrequests/pullrequest.html @ 3322:c9b0f1d363c7 beta
compare: swap org and other when they refer to different repos, ie are pull request style
Pull requests will have a different from/to description - but in a consistent
and slightly better way that can be improved later.
A pull request diff is empathic: "How will this look for the peer I'm proposing to" style.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 01 Feb 2013 23:13:10 +0100 |
parents | a91fa221a3b8 |
children | c5dde6b5e976 |
comparison
equal
deleted
inserted
replaced
3321:a91fa221a3b8 | 3322:c9b0f1d363c7 |
---|---|
138 | 138 |
139 var loadPreview = function(){ | 139 var loadPreview = function(){ |
140 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none'); | 140 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none'); |
141 //url template | 141 //url template |
142 var url = "${h.url('compare_url', | 142 var url = "${h.url('compare_url', |
143 repo_name='__org_repo__', | 143 repo_name='__other_repo__', |
144 org_ref_type='__org_ref_type__', | 144 org_ref_type='__other_ref_type__', |
145 org_ref='__org_ref__', | 145 org_ref='__other_ref__', |
146 other_repo='__other_repo__', | 146 other_repo='__org_repo__', |
147 other_ref_type='__other_ref_type__', | 147 other_ref_type='__org_ref_type__', |
148 other_ref='__other_ref__', | 148 other_ref='__org_ref__', |
149 as_form=True, | 149 as_form=True, |
150 rev_start=request.GET.get('rev_start',''), | 150 rev_start=request.GET.get('rev_start',''), |
151 rev_end=request.GET.get('rev_end',''))}"; | 151 rev_end=request.GET.get('rev_end',''))}"; |
152 var org_repo = YUQ('#pull_request_form #org_repo')[0].value; | 152 var org_repo = YUQ('#pull_request_form #org_repo')[0].value; |
153 var org_ref = YUQ('#pull_request_form #org_ref')[0].value.split(':'); | 153 var org_ref = YUQ('#pull_request_form #org_ref')[0].value.split(':'); |