diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-25 17:24:19 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-25 17:54:55 -0500 |
| commit | 99d49959148251151b5121f45d26ae0ac5694120 (patch) | |
| tree | 250d3402bfcf582ba61fe52faf64ab3500bf1b0e /views/_tree.eta | |
| parent | 7132094f28ca2dc08c32f207ade9c63a28952115 (diff) | |
Use Phosphor Icons
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> |
