Mercurial > kallithea
comparison pylons_app/templates/files/files_browser.html @ 128:9deb6f1d5b90
Implemented file history.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 May 2010 21:59:01 +0200 |
parents | |
children | ea89ac73bef8 |
comparison
equal
deleted
inserted
replaced
127:20dc7a5eb748 | 128:9deb6f1d5b90 |
---|---|
1 <%def name="file_class(node)"> | |
2 %if node.is_file(): | |
3 <%return "browser-file" %> | |
4 %else: | |
5 <%return "browser-dir"%> | |
6 %endif | |
7 </%def> | |
8 | |
9 <table class="code-browser"> | |
10 <thead> | |
11 <tr> | |
12 <th class="width-50 lefted">${_('Name')}</th> | |
13 <th class="width-10 righted">${_('Size')}</th> | |
14 <th class="width-10 righted">${_('Revision')}</th> | |
15 <th class="width-15 righted">${_('Last modified')}</th> | |
16 <th class="width-15 righted">${_('Last commiter')}</th> | |
17 </tr> | |
18 </thead> | |
19 <tr> | |
20 % if c.files_list.parent: | |
21 <td> | |
22 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent),class_="browser-dir")} | |
23 </td> | |
24 <td></td> | |
25 <td></td> | |
26 <td></td> | |
27 <td></td> | |
28 %endif | |
29 </tr> | |
30 %for cnt,node in enumerate(c.files_list): | |
31 <tr class="parity${cnt%2}"> | |
32 <td> | |
33 ${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))} | |
34 </td> | |
35 <td> | |
36 %if node.is_file(): | |
37 ${h.filesizeformat(node.size)} | |
38 %endif | |
39 </td> | |
40 <td> | |
41 %if node.is_file(): | |
42 ${node.last_changeset.revision} | |
43 %endif | |
44 </td> | |
45 <td> | |
46 %if node.is_file(): | |
47 ${node.last_changeset.date} | |
48 %endif | |
49 </td> | |
50 <td> | |
51 %if node.is_file(): | |
52 ${node.last_changeset.author} | |
53 %endif | |
54 </td> | |
55 </tr> | |
56 %endfor | |
57 </table> |