Show More
@@ -27,17 +27,21 b'' | |||
|
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"> |
General Comments 0
You need to be logged in to leave comments.
Login now