diff options
Diffstat (limited to 'views/_tree.eta')
| -rw-r--r-- | views/_tree.eta | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/_tree.eta b/views/_tree.eta index ac7b2b1..2549bb8 100644 --- a/views/_tree.eta +++ b/views/_tree.eta @@ -2,10 +2,11 @@ <% for (const item of it.items) { %> <tr> <td> - <span class="icon"><%= item.contentType === 'directory' ? '📁' : '📄' %></span> <% if (item.contentType === 'directory') { %> + <img src="/static/icons/folder-simple.svg" alt="tree" class="icon"> <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= it.branch %>/<%= item.path %>"><%= item.name %></a> <% } else { %> + <img src="/static/icons/file.svg" alt="blob" class="icon"> <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/blob/<%= it.branch %>/<%= item.path %>"><%= item.name %></a> <% } %> </td> |
