diff options
Diffstat (limited to 'views/tree.eta')
| -rw-r--r-- | views/tree.eta | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/views/tree.eta b/views/tree.eta index 911b7ee..7068754 100644 --- a/views/tree.eta +++ b/views/tree.eta @@ -1,16 +1,3 @@ <% layout("./layout") %> -<table> - <% for (const item of it.items) { %> - <tr> - <td> - <span class="icon"><%= item.contentType === 'directory' ? '📁' : '📄' %></span> - <% if (item.contentType === 'directory') { %> - <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= it.branch %>/<%= item.path %>"><%= item.name %></a> - <% } else { %> - <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/blob/<%= it.branch %>/<%= item.path %>"><%= item.name %></a> - <% } %> - </td> - </tr> - <% } %> -</table> +<%~ include("./_tree", it) %> |
