Mercurial > kallithea
comparison rhodecode/templates/files/files_browser.html @ 740:9279dfedcf93 beta
fixed python2.5 incompatible enumerate calls
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 23 Nov 2010 01:58:49 +0100 |
parents | dff6d5cb8bba |
children | 3d0661b8aaa4 322b53be49cc |
comparison
equal
deleted
inserted
replaced
739:554ed64953ff | 740:9279dfedcf93 |
---|---|
41 <td></td> | 41 <td></td> |
42 <td></td> | 42 <td></td> |
43 </tr> | 43 </tr> |
44 %endif | 44 %endif |
45 | 45 |
46 %for cnt,node in enumerate(c.files_list,1): | 46 %for cnt,node in enumerate(c.files_list): |
47 <tr class="parity${cnt%2}"> | 47 <tr class="parity${cnt+1%2}"> |
48 <td> | 48 <td> |
49 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=node.path),class_=file_class(node))} | 49 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=node.path),class_=file_class(node))} |
50 </td> | 50 </td> |
51 <td> | 51 <td> |
52 %if node.is_file(): | 52 %if node.is_file(): |