Changeset - 51e3d60fed2f
[Not reviewed]
codereview
0 1 0
Marcin Kuzminski - 13 years ago 2012-06-06 01:23:02
marcin@python-works.com
added link for detailed overview in pull-request form
1 file changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/pullrequests/pullrequest.html
Show inline comments
 
@@ -59,12 +59,15 @@
 
           </a>
 
         </span>       
 
       </div>
 
       <div style="clear:both;padding-top: 10px"></div>       
 
       <div style="float:left" id="pull_request_overview">
 
       </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>
 
        <div id="reviewers" style="padding:0px 0px 0px 15px">
 
        ##TODO: make this nicer :)
 
          <table class="table noborder">
 
@@ -138,12 +141,13 @@
 
</div>
 

	
 
<script type="text/javascript">
 
  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',
 
          other_ref_type='branch', other_ref='other_ref',
 
          repo='other_repo')}";
 
  
 
@@ -167,13 +171,16 @@
 
          key = select_ref.name;
 
          val = select_ref.value;
 
          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()
 
  })
 
  
 
  //lazy load after 0.5
0 comments (0 inline, 0 general)