comparison rhodecode/templates/files/files_browser.html @ 644:c8bd0e6cc3da beta

some changes for #45. Added warning messages for browsing wrong cs/paths Cleanup of codes
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 02 Nov 2010 23:28:37 +0100
parents fcf599cd3404
children dff6d5cb8bba
comparison
equal deleted inserted replaced
643:9dc1d92d82ed 644:c8bd0e6cc3da
8 <div id="body" class="browserblock"> 8 <div id="body" class="browserblock">
9 <div class="browser-header"> 9 <div class="browser-header">
10 ${h.form(h.url.current())} 10 ${h.form(h.url.current())}
11 <div class="info_box"> 11 <div class="info_box">
12 <span >${_('view')}@rev</span> 12 <span >${_('view')}@rev</span>
13 <a href="${c.url_prev}">&laquo;</a> 13 <a href="${c.url_prev}" title="${_('previous revision')}">&laquo;</a>
14 ${h.text('at_rev',value=c.rev_nr,size=3)} 14 ${h.text('at_rev',value=c.changeset.revision,size=3)}
15 <a href="${c.url_next}">&raquo;</a> 15 <a href="${c.url_next}" title="${_('next revision')}">&raquo;</a>
16 ${h.submit('view','view')} 16 ${h.submit('view','view')}
17 </div> 17 </div>
18 ${h.end_form()} 18 ${h.end_form()}
19 </div> 19 </div>
20 <div class="browser-body"> 20 <div class="browser-body">
31 </thead> 31 </thead>
32 32
33 %if c.files_list.parent: 33 %if c.files_list.parent:
34 <tr class="parity0"> 34 <tr class="parity0">
35 <td> 35 <td>
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")} 36 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id,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>
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,1):
47 <tr class="parity${cnt%2}"> 47 <tr class="parity${cnt%2}">
48 <td> 48 <td>
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))} 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():
53 ${h.format_byte_size(node.size,binary=True)} 53 ${h.format_byte_size(node.size,binary=True)}
54 %endif 54 %endif
58 ${node.mimetype} 58 ${node.mimetype}
59 %endif 59 %endif
60 </td> 60 </td>
61 <td> 61 <td>
62 %if node.is_file(): 62 %if node.is_file():
63 ${node.last_changeset.revision} 63 <span class="tooltip" tooltip_title="${node.last_changeset.raw_id}">${node.last_changeset.revision}</span>
64 %endif 64 %endif
65 </td> 65 </td>
66 <td> 66 <td>
67 %if node.is_file(): 67 %if node.is_file():
68 ${h.age(node.last_changeset.date)} - ${node.last_changeset.date} 68 ${node.last_changeset.date} - ${h.age(node.last_changeset.date)} ${_('ago')}
69 %endif 69 %endif
70 </td> 70 </td>
71 <td> 71 <td>
72 %if node.is_file(): 72 %if node.is_file():
73 ${node.last_changeset.author} 73 ${node.last_changeset.author}