##// END OF EJS Templates
added link for detailed overview in pull-request form
marcink -
r2396:51e3d60f codereview
parent child Browse files
Show More
@@ -62,6 +62,9 b''
62 <div style="clear:both;padding-top: 10px"></div>
62 <div style="clear:both;padding-top: 10px"></div>
63 <div style="float:left" id="pull_request_overview">
63 <div style="float:left" id="pull_request_overview">
64 </div>
64 </div>
65 <div style="float:left;clear:both;padding:10px 10px 10px 0px;display:none">
66 <a id="pull_request_overview_url" href="#">${_('Detailed compare view')}</a>
67 </div>
65 </div>
68 </div>
66 <div style="float:left; border-left:1px dashed #eee">
69 <div style="float:left; border-left:1px dashed #eee">
67 <h4>${_('Pull request reviewers')}</h4>
70 <h4>${_('Pull request reviewers')}</h4>
@@ -141,6 +144,7 b''
141 MultiSelectWidget('review_members','available_members','pull_request_form');
144 MultiSelectWidget('review_members','available_members','pull_request_form');
142
145
143 var loadPreview = function(){
146 var loadPreview = function(){
147 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none');
144 var url = "${h.url('compare_url',
148 var url = "${h.url('compare_url',
145 repo_name='org_repo',
149 repo_name='org_repo',
146 org_ref_type='branch', org_ref='org_ref',
150 org_ref_type='branch', org_ref='org_ref',
@@ -170,7 +174,10 b''
170 }
174 }
171 }
175 }
172
176
173 ypjax(url,'pull_request_overview', function(data){})
177 ypjax(url,'pull_request_overview', function(data){
178 YUD.get('pull_request_overview_url').href = url;
179 YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','');
180 })
174 }
181 }
175 YUE.on('refresh','click',function(e){
182 YUE.on('refresh','click',function(e){
176 loadPreview()
183 loadPreview()
General Comments 0
You need to be logged in to leave comments. Login now