summaryrefslogtreecommitdiff
path: root/cgithub/views/layout.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-01-25 18:51:27 -0500
committerJoe Mou <dev@mou.fo>2026-01-25 18:55:42 -0500
commit37aa28f1465cfdd26a58c6dd5b752141ea876cde (patch)
tree262c4ebd6988bbaf35cbd4c602ef92fbf794a193 /cgithub/views/layout.eta
parent1b0ba4cd232f9e68f2fd8dca1f38a4e82a3110a9 (diff)
Styling
Diffstat (limited to 'cgithub/views/layout.eta')
-rw-r--r--cgithub/views/layout.eta18
1 files changed, 6 insertions, 12 deletions
diff --git a/cgithub/views/layout.eta b/cgithub/views/layout.eta
index 982f8c0..a191301 100644
--- a/cgithub/views/layout.eta
+++ b/cgithub/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>