changeset 2396:51e3d60fed2f codereview

added link for detailed overview in pull-request form
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 06 Jun 2012 01:23:02 +0200
parents b262e349a7a5
children 9f37281195a2
files rhodecode/templates/pullrequests/pullrequest.html
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest.html	Wed Jun 06 01:07:48 2012 +0200
+++ b/rhodecode/templates/pullrequests/pullrequest.html	Wed Jun 06 01:23:02 2012 +0200
@@ -61,7 +61,10 @@
        </div>
        <div style="clear:both;padding-top: 10px"></div>       
        <div style="float:left" id="pull_request_overview">
-       </div>        
+       </div>
+       <div style="float:left;clear:both;padding:10px 10px 10px 0px;display:none">
+            <a id="pull_request_overview_url" href="#">${_('Detailed compare view')}</a>
+       </div>               
      </div>
     <div style="float:left; border-left:1px dashed #eee">
         <h4>${_('Pull request reviewers')}</h4>
@@ -141,6 +144,7 @@
   MultiSelectWidget('review_members','available_members','pull_request_form');
   
   var loadPreview = function(){
+	  YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none');
       var url = "${h.url('compare_url', 
           repo_name='org_repo',
           org_ref_type='branch', org_ref='org_ref',
@@ -169,8 +173,11 @@
           url = url.replace(key,val);
         }
       }
-    
-      ypjax(url,'pull_request_overview', function(data){})	  
+      
+      ypjax(url,'pull_request_overview', function(data){
+    	  YUD.get('pull_request_overview_url').href = url;
+    	  YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','');
+      })	  
   }
   YUE.on('refresh','click',function(e){
      loadPreview()