summaryrefslogtreecommitdiff
path: root/cgithub/views/owner.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-07-15 01:18:50 -0400
committerJoe Mou <dev@mou.fo>2026-07-15 01:18:50 -0400
commit7f38fbb0e3c852fda02986f3a755557938810062 (patch)
tree6651667c8daecadee3199d169b25fa7ddcedef10 /cgithub/views/owner.eta
parent47ddd107c2f19a977798b8af230c652ba731cf45 (diff)
Add organization support to owner pages
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/views/owner.eta')
-rw-r--r--cgithub/views/owner.eta58
1 files changed, 58 insertions, 0 deletions
diff --git a/cgithub/views/owner.eta b/cgithub/views/owner.eta
new file mode 100644
index 0000000..4426400
--- /dev/null
+++ b/cgithub/views/owner.eta
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title><%= it.name ? `${it.name} (${it.login})` : it.login %></title>
+ <link rel="stylesheet" href="/static/style.css">
+</head>
+<body>
+ <div class="box repo-info">
+ <% if (it.avatarUrl) { %>
+ <img class="avatar" src="<%= it.avatarUrl %>" alt="" width="64" height="64">
+ <% } %>
+ <div class="repo"><%= it.name || it.login %></div>
+ <div class="detail"><%= it.login %><%= it.type === "organization" ? " (organization)" : "" %></div>
+ <% if (it.bio) { %>
+ <div class="description"><%= it.bio %></div>
+ <% } %>
+ <% if (it.followers) { %>
+ <div class="detail"><img src="/static/icons/eye.svg" alt="" class="icon"> <%= it.followers %> followers<%= it.following ? ` ยท ${it.following} following` : "" %></div>
+ <% } %>
+ <% if (it.company) { %>
+ <div class="detail"><%= it.company %></div>
+ <% } %>
+ <% if (it.location) { %>
+ <div class="detail"><%= it.location %></div>
+ <% } %>
+ <% for (const link of it.links) { %>
+ <div class="detail"><img src="/static/icons/link.svg" alt="" class="icon"> <a href="<%= link.href %>" rel="noopener noreferrer"><%= link.text %></a></div>
+ <% } %>
+ </div>
+
+ <% if (it.pinned.length > 0) { %>
+ <section>
+ <h2>Pinned</h2>
+ <% for (const repo of it.pinned) { %>
+ <div class="box repo-info">
+ <div><a href="/<%= repo.owner %>/<%= repo.name %>"><%= repo.owner === it.login ? repo.name : `${repo.owner}/${repo.name}` %></a></div>
+ <% if (repo.description) { %>
+ <div class="description"><%= repo.description %></div>
+ <% } %>
+ <% if (repo.language) { %>
+ <span class="detail"><%= repo.language %></span>
+ <% } %>
+ <% if (repo.stars) { %>
+ <span class="detail"><img src="/static/icons/star.svg" alt="stars" class="icon"> <%= repo.stars %></span>
+ <% } %>
+ <% if (repo.forks) { %>
+ <span class="detail"><img src="/static/icons/git-fork.svg" alt="forks" class="icon"> <%= repo.forks %></span>
+ <% } %>
+ </div>
+ <% } %>
+ </section>
+ <% } %>
+
+ <footer>Generated by cgithub</footer>
+</body>
+</html>