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