comparison pylons_app/templates/files/files_browser.html @ 497:fb0c3af6031b celery

Implemented locking for task, to prevent for running the same tasks, moved out pidlock library. Added dirsize display
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 23 Sep 2010 01:08:33 +0200
parents 15f837c62fa5
children
comparison
equal deleted inserted replaced
496:47f4c7ff245b 497:fb0c3af6031b
27 <th>${_('Revision')}</th> 27 <th>${_('Revision')}</th>
28 <th>${_('Last modified')}</th> 28 <th>${_('Last modified')}</th>
29 <th>${_('Last commiter')}</th> 29 <th>${_('Last commiter')}</th>
30 </tr> 30 </tr>
31 </thead> 31 </thead>
32 <tr class="parity0"> 32
33 <td> 33 % if c.files_list.parent:
34 % if c.files_list.parent: 34 <tr class="parity0">
35 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")} 35 <td>
36 %endif 36 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
37 </td> 37 </td>
38 <td></td> 38 <td></td>
39 <td></td> 39 <td></td>
40 <td></td> 40 <td></td>
41 <td></td> 41 <td></td>
42 </tr> 42 <td></td>
43 </tr>
44 %endif
45
43 %for cnt,node in enumerate(c.files_list,1): 46 %for cnt,node in enumerate(c.files_list,1):
44 <tr class="parity${cnt%2}"> 47 <tr class="parity${cnt%2}">
45 <td> 48 <td>
46 ${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))} 49 ${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))}
47 </td> 50 </td>
48 <td> 51 <td>
49 %if node.is_file(): 52 ${h.format_byte_size(node.size,binary=True)}
50 ${h.format_byte_size(node.size,binary=True)}
51 %endif
52 </td> 53 </td>
53 <td> 54 <td>
54 %if node.is_file(): 55 %if node.is_file():
55 ${node.mimetype} 56 ${node.mimetype}
56 %endif 57 %endif