From 59f587d9ffac3d20486ec6773aedebb54012cc32 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 15 Jul 2026 01:36:33 -0400 Subject: Owner page nav menu and layout restructure Add a menu bar of profile tab links, split the org repository list from pinned repos, and restructure the owner template to match repo pages. Co-Authored-By: Claude Fable 5 --- cgithub/views/owner.eta | 65 +++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 29 deletions(-) (limited to 'cgithub/views/owner.eta') diff --git a/cgithub/views/owner.eta b/cgithub/views/owner.eta index 4426400..e5667fb 100644 --- a/cgithub/views/owner.eta +++ b/cgithub/views/owner.eta @@ -7,48 +7,55 @@ -
+
<% if (it.avatarUrl) { %> <% } %>
<%= it.name || it.login %>
-
<%= it.login %><%= it.type === "organization" ? " (organization)" : "" %>
- <% if (it.bio) { %> -
<%= it.bio %>
- <% } %> - <% if (it.followers) { %> -
<%= it.followers %> followers<%= it.following ? ` · ${it.following} following` : "" %>
- <% } %> - <% if (it.company) { %> -
<%= it.company %>
- <% } %> +
<%= it.login %><%= it.type === "organization" ? " (organization)" : "" %>
<% if (it.location) { %> -
<%= it.location %>
+
<%= it.location %>
<% } %> - <% for (const link of it.links) { %> - + <% if (it.nav.length > 0) { %> + <% } %>
+ <% if (it.bio || it.links.length > 0 || it.followers || it.company) { %> +
+ <% if (it.bio) { %> +
<%= it.bio %>
+ <% } %> + <% for (const link of it.links) { %> + + <% } %> + <% if (it.followers) { %> +
<%= it.followers %> followers<%= it.following ? ` · ${it.following} following` : "" %>
+ <% } %> + <% if (it.company) { %> +
<%= it.company %>
+ <% } %> +
+ <% } %> + <% if (it.pinned.length > 0) { %>

Pinned

<% for (const repo of it.pinned) { %> -
- - <% if (repo.description) { %> -
<%= repo.description %>
- <% } %> - <% if (repo.language) { %> - <%= repo.language %> - <% } %> - <% if (repo.stars) { %> - stars <%= repo.stars %> - <% } %> - <% if (repo.forks) { %> - forks <%= repo.forks %> - <% } %> -
+ <%~ include("./_ownerRepo", { repo, login: it.login }) %> + <% } %> +
+ <% } %> + + <% if (it.repos.length > 0) { %> +
+

Repositories

+ <% for (const repo of it.repos) { %> + <%~ include("./_ownerRepo", { repo, login: it.login }) %> <% } %>
<% } %> -- cgit v1.3.1