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