Changeset - e21ec97aca1f
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-11-14 23:08:03
marcin@python-works.com
fixed issue with new files and removed files with using inline comments
1 file changed with 10 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/changeset/changeset.html
Show inline comments
 
@@ -98,7 +98,13 @@
 
	        <div class="cs_files">
 
	                %for change,filenode,diff,cs1,cs2,stat in c.changes:
 
	                    <div class="cs_${change}">
 
		                    <div class="node">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid(filenode.changeset.raw_id,filenode.path)))}</div>
 
                            <div class="node">
 
                            %if change != 'removed':
 
                                ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid(filenode.changeset.raw_id,filenode.path)))}
 
                            %else:
 
                                ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid('',filenode.path)))}
 
                            %endif
 
                            </div>
 
		                    <div class="changes">${h.fancy_file_stats(stat)}</div>
 
	                    </div>
 
	                %endfor
 
@@ -242,14 +248,15 @@
 
          for (f in file_comments){
 
        	  var box = file_comments[f];
 
        	  var inlines = box.children;
 
        	  
 
        	  for(var i=0; i<inlines.length; i++){
 
        		  try{
 
        		  var inline = inlines[i];
 
        		  var lineno = YUD.getAttribute(inlines[i],'line');
 
        		  var lineid = "a{0}_{1}".format(YUD.getAttribute(inline,'target_id'),lineno);
 
          		    var lineid = "{0}_{1}".format(YUD.getAttribute(inline,'target_id'),lineno);
 
                  var target_line = YUD.get(lineid);
 
                  var comments = new YAHOO.util.Element(tableTr('inline-comments',inline.innerHTML))
 
                  YUD.insertAfter(comments,target_line.parentNode);        		  
 
        		  }catch(e){}
 
        	  }
 
          }
 
      })
0 comments (0 inline, 0 general)