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 | b471cbde1e733fa30ad69da59cee21bcf8e66ea1 (patch) | |
| tree | c5593e8fd8f65cc55ba170f4e62b37138f93b063 /cgithub/views/_tree.eta | |
| parent | 0391e279f80f6406502b4069bf2e13d3f13ed56e (diff) | |
Use Phosphor Icons
Diffstat (limited to 'cgithub/views/_tree.eta')
| -rw-r--r-- | cgithub/views/_tree.eta | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cgithub/views/_tree.eta b/cgithub/views/_tree.eta index ac7b2b1..2549bb8 100644 --- a/cgithub/views/_tree.eta +++ b/cgithub/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> |
