diff rhodecode/templates/files/files_browser.html @ 671:bee56f209c40 rhodecode-0.0.1.0.1

fixes few bugs - fixed #53 python2.5 incompatible enumerate calls - fixed #52 disable mercurial extension for web - fixed #51 deleting repositories don't delete it's dependent objects - small css updated
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 10 Nov 2010 01:14:44 +0100
parents 95b746f2f0ed
children 3d0661b8aaa4
line wrap: on
line diff
--- a/rhodecode/templates/files/files_browser.html	Tue Nov 02 20:28:28 2010 +0100
+++ b/rhodecode/templates/files/files_browser.html	Wed Nov 10 01:14:44 2010 +0100
@@ -43,8 +43,8 @@
 				</tr>	          		
           		%endif
 		         	
-		    %for cnt,node in enumerate(c.files_list,1):
-				<tr class="parity${cnt%2}">
+		    %for cnt,node in enumerate(c.files_list):
+				<tr class="parity${(cnt+1)%2}">
 		             <td>
 						${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
 		             </td>
@@ -59,19 +59,19 @@
 		              %endif
 		             </td>
 		             <td>
-		             	%if node.is_file():
-		             		${node.last_changeset.revision}
-		             	%endif
+	             	  %if node.is_file():
+	             		  ${node.last_changeset.revision}
+	             	  %endif
 		             </td>
 		             <td>
-		             	%if node.is_file():
-		             		${h.age(node.last_changeset._ctx.date())} - ${node.last_changeset.date}
-		             	%endif
+		              %if node.is_file():
+		                  ${h.age(node.last_changeset._ctx.date())} - ${node.last_changeset.date}
+		              %endif
 		             </td>
 		             <td>
-		             	%if node.is_file():
-		             		${node.last_changeset.author}
-		             	%endif                    
+		              %if node.is_file():
+		                  ${node.last_changeset.author}
+		              %endif                    
 		             </td>
 				</tr>
 			%endfor