##// END OF EJS Templates
subrepo: show subrepo as dir path.
marcink -
r1105:e31abe60 default
parent child Browse files
Show More
@@ -1,78 +1,82 b''
1 1 <div id="file-tree-wrapper" class="browser-body ${'full-load' if c.full_load else ''}">
2 2 <table class="code-browser rctable">
3 3 <thead>
4 4 <tr>
5 5 <th>${_('Name')}</th>
6 6 <th>${_('Size')}</th>
7 7 <th>${_('Modified')}</th>
8 8 <th>${_('Last Commit')}</th>
9 9 <th>${_('Author')}</th>
10 10 </tr>
11 11 </thead>
12 12
13 13 <tbody id="tbody">
14 14 %if c.file.parent:
15 15 <tr class="parity0">
16 16 <td class="td-componentname">
17 17 <a href="${h.url('files_home',repo_name=c.repo_name,revision=c.commit.raw_id,f_path=c.file.parent.path)}" class="pjax-link">
18 18 <i class="icon-folder"></i>..
19 19 </a>
20 20 </td>
21 21 <td></td>
22 22 <td></td>
23 23 <td></td>
24 24 <td></td>
25 25 </tr>
26 26 %endif
27 27 %for cnt,node in enumerate(c.file):
28 28 <tr class="parity${cnt%2}">
29 29 <td class="td-componentname">
30 %if node.is_submodule():
30 % if node.is_submodule():
31 31 <span class="submodule-dir">
32 ${h.link_to_if(
33 node.url.startswith('http://') or node.url.startswith('https://'),
34 node.name, node.url)}
32 % if node.url.startswith('http://') or node.url.startswith('https://'):
33 <a href="${node.url}">
34 <i class="icon-folder browser-dir"></i>${node.name}
35 </a>
36 % else:
37 <i class="icon-folder browser-dir"></i>${node.name}
38 % endif
35 39 </span>
36 %else:
40 % else:
37 41 <a href="${h.url('files_home',repo_name=c.repo_name,revision=c.commit.raw_id,f_path=h.safe_unicode(node.path))}" class="pjax-link">
38 42 <i class="${'icon-file browser-file' if node.is_file() else 'icon-folder browser-dir'}"></i>${node.name}
39 43 </a>
40 %endif
44 % endif
41 45 </td>
42 46 %if node.is_file():
43 47 <td class="td-size" data-attr-name="size">
44 48 % if c.full_load:
45 49 <span data-size="${node.size}">${h.format_byte_size_binary(node.size)}</span>
46 50 % else:
47 51 ${_('Loading ...')}
48 52 % endif
49 53 </td>
50 54 <td class="td-time" data-attr-name="modified_at">
51 55 % if c.full_load:
52 56 <span data-date="${node.last_commit.date}">${h.age_component(node.last_commit.date)}</span>
53 57 % endif
54 58 </td>
55 59 <td class="td-hash" data-attr-name="commit_id">
56 60 % if c.full_load:
57 61 <div class="tooltip" title="${node.last_commit.message}">
58 62 <pre data-commit-id="${node.last_commit.raw_id}">r${node.last_commit.revision}:${node.last_commit.short_id}</pre>
59 63 </div>
60 64 % endif
61 65 </td>
62 66 <td class="td-user" data-attr-name="author">
63 67 % if c.full_load:
64 68 <span data-author="${node.last_commit.author}" title="${node.last_commit.author}">${h.gravatar_with_user(node.last_commit.author)|n}</span>
65 69 % endif
66 70 </td>
67 71 %else:
68 72 <td></td>
69 73 <td></td>
70 74 <td></td>
71 75 <td></td>
72 76 %endif
73 77 </tr>
74 78 %endfor
75 79 </tbody>
76 80 <tbody id="tbody_filtered"></tbody>
77 81 </table>
78 82 </div>
General Comments 0
You need to be logged in to leave comments. Login now