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