##// END OF EJS Templates
shorten last modified column in files listing
marcink -
r887:3c0cae9b beta
parent child Browse files
Show More
@@ -1,98 +1,100 b''
1 1 <%def name="file_class(node)">
2 2 %if node.is_file():
3 3 <%return "browser-file" %>
4 4 %else:
5 5 <%return "browser-dir"%>
6 6 %endif
7 7 </%def>
8 8 <div id="body" class="browserblock">
9 9 <div class="browser-header">
10 10 ${h.form(h.url.current())}
11 11 <div class="info_box">
12 12 <span >${_('view')}@rev</span>
13 13 <a href="${c.url_prev}" title="${_('previous revision')}">&laquo;</a>
14 14 ${h.text('at_rev',value=c.changeset.revision,size=3)}
15 15 <a href="${c.url_next}" title="${_('next revision')}">&raquo;</a>
16 16 ${h.submit('view','view')}
17 17 </div>
18 18 ${h.end_form()}
19 19 </div>
20 20 <div class="browser-branch">
21 21 ${h.checkbox('stay_at_branch',c.changeset.branch,c.changeset.branch==c.branch)}
22 22 <label>${_('follow current branch')}</label>
23 23 <script type="text/javascript">
24 24 YUE.on('stay_at_branch','click',function(e){
25 25 if(e.target.checked){
26 26 var uri = "${h.url.current(branch='__BRANCH__')}"
27 27 uri = uri.replace('__BRANCH__',e.target.value);
28 28 window.location = uri;
29 29 }
30 30 else{
31 31 window.location = "${h.url.current()}";
32 32 }
33 33
34 34 })
35 35 </script>
36 36 </div>
37 37 <div style="clear:both"></div>
38 38 <div class="browser-body">
39 39 <table class="code-browser">
40 40 <thead>
41 41 <tr>
42 42 <th>${_('Name')}</th>
43 43 <th>${_('Size')}</th>
44 44 <th>${_('Mimetype')}</th>
45 45 <th>${_('Revision')}</th>
46 46 <th>${_('Last modified')}</th>
47 47 <th>${_('Last commiter')}</th>
48 48 </tr>
49 49 </thead>
50 50
51 51 %if c.files_list.parent:
52 52 <tr class="parity0">
53 53 <td>
54 54 ${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")}
55 55 </td>
56 56 <td></td>
57 57 <td></td>
58 58 <td></td>
59 59 <td></td>
60 60 <td></td>
61 61 </tr>
62 62 %endif
63 63
64 64 %for cnt,node in enumerate(c.files_list):
65 <tr class="parity${cnt+1%2}">
65 <tr class="parity${cnt%2}">
66 66 <td>
67 67 ${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))}
68 68 </td>
69 69 <td>
70 70 %if node.is_file():
71 71 ${h.format_byte_size(node.size,binary=True)}
72 72 %endif
73 73 </td>
74 74 <td>
75 75 %if node.is_file():
76 76 ${node.mimetype}
77 77 %endif
78 78 </td>
79 79 <td>
80 80 %if node.is_file():
81 <span class="tooltip" tooltip_title="${node.last_changeset.raw_id}">${node.last_changeset.revision}</span>
81 <span class="tooltip" tooltip_title="${node.last_changeset.raw_id}">
82 ${node.last_changeset.revision}</span>
82 83 %endif
83 84 </td>
84 85 <td>
85 86 %if node.is_file():
86 ${node.last_changeset.date} - ${h.age(node.last_changeset.date)}
87 <span class="tooltip" tooltip_title="${node.last_changeset.date}">
88 ${h.age(node.last_changeset.date)}</span>
87 89 %endif
88 90 </td>
89 91 <td>
90 92 %if node.is_file():
91 93 ${node.last_changeset.author}
92 94 %endif
93 95 </td>
94 96 </tr>
95 97 %endfor
96 98 </table>
97 99 </div>
98 100 </div> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now