diff 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
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest.html	Mon Feb 04 21:26:01 2013 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest.html	Fri Feb 01 23:13:10 2013 +0100
@@ -140,12 +140,12 @@
       YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none');
       //url template
       var url = "${h.url('compare_url',
-                         repo_name='__org_repo__',
-                         org_ref_type='__org_ref_type__',
-                         org_ref='__org_ref__',
-                         other_repo='__other_repo__',
-                         other_ref_type='__other_ref_type__',
-                         other_ref='__other_ref__',
+                         repo_name='__other_repo__',
+                         org_ref_type='__other_ref_type__',
+                         org_ref='__other_ref__',
+                         other_repo='__org_repo__',
+                         other_ref_type='__org_ref_type__',
+                         other_ref='__org_ref__',
                          as_form=True,
                          rev_start=request.GET.get('rev_start',''),
                          rev_end=request.GET.get('rev_end',''))}";