diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-25 18:51:27 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-25 18:55:42 -0500 |
| commit | dec9d6e1b96c60bcea131c9967e4d5f2d092f5e4 (patch) | |
| tree | a289e0a879882d7cd732e3f6b27cdb88b7b9981f /views/layout.eta | |
| parent | 485e3519271c58748261225810c5fda7d13d7fed (diff) | |
Styling
Diffstat (limited to 'views/layout.eta')
| -rw-r--r-- | views/layout.eta | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/views/layout.eta b/views/layout.eta index 982f8c0..a191301 100644 --- a/views/layout.eta +++ b/views/layout.eta @@ -2,16 +2,16 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title><%= it.repo.owner %>/<%= it.repo.name %> - <%= it.path || 'root' %></title> + <title><%= it.repo.owner %>/<%= it.repo.name %> - <%= it.path || '/' %></title> <link rel="stylesheet" href="/static/style.css"> </head> <body> <header> - <h1><%= it.repo.owner %>/<%= it.repo.name %></h1> - <div><img src="/static/icons/git-branch.svg" alt="branch" class="icon"> <%= it.branch %></div> + <div class="repo"><%= it.repo.owner %>/<%= it.repo.name %></div> + <div class="branch"><img src="/static/icons/git-branch.svg" alt="branch" class="icon"> <%= it.branch %></div> <% if (it.path) { %> - <div> - path: <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= it.branch %>">root</a><% + <span> + <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= it.branch %>">(top)</a><% const pathParts = it.path.split('/').filter(p => p); let currentPath = ''; for (let i = 0; i < pathParts.length; i++) { @@ -24,13 +24,7 @@ %>/<a href="/<%= it.repo.owner %>/<%= it.repo.name %>/tree/<%= it.branch %>/<%= currentPath %>"><%= part %></a><% } } %> - </div> - <% } %> - <% if (it.language) { %> - <div>language: <%= it.language %></div> - <% } %> - <% if (it.size !== undefined) { %> - <div>size: <%= it.size %> bytes</div> + </span> <% } %> </header> |
