From d1cf004c578821a2025c1cd3a23fcb57b6d5ad51 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 15 Jul 2026 01:18:50 -0400 Subject: Add organization support to owner pages Co-Authored-By: Claude Fable 5 --- views/home.eta | 2 +- views/owner.eta | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ views/user.eta | 58 --------------------------------------------------------- 3 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 views/owner.eta delete mode 100644 views/user.eta (limited to 'views') diff --git a/views/home.eta b/views/home.eta index 0026ea3..604e4d0 100644 --- a/views/home.eta +++ b/views/home.eta @@ -12,7 +12,7 @@
-

Browse any GitHub repository by navigating to /:owner/:repo, or a user profile at /:user

+

Browse any GitHub repository by navigating to /:owner/:repo, or a user or organization profile at /:owner

Credits

diff --git a/views/owner.eta b/views/owner.eta new file mode 100644 index 0000000..4426400 --- /dev/null +++ b/views/owner.eta @@ -0,0 +1,58 @@ + + + + + + <%= it.name ? `${it.name} (${it.login})` : it.login %> + + + +
+ <% 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 %>
+ <% } %> + <% if (it.location) { %> +
<%= it.location %>
+ <% } %> + <% for (const link of it.links) { %> + + <% } %> +
+ + <% if (it.pinned.length > 0) { %> +
+

Pinned

+ <% for (const repo of it.pinned) { %> +
+
<%= repo.owner === it.login ? repo.name : `${repo.owner}/${repo.name}` %>
+ <% if (repo.description) { %> +
<%= repo.description %>
+ <% } %> + <% if (repo.language) { %> + <%= repo.language %> + <% } %> + <% if (repo.stars) { %> + stars <%= repo.stars %> + <% } %> + <% if (repo.forks) { %> + forks <%= repo.forks %> + <% } %> +
+ <% } %> +
+ <% } %> + +
Generated by cgithub
+ + diff --git a/views/user.eta b/views/user.eta deleted file mode 100644 index cf2da94..0000000 --- a/views/user.eta +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - <%= it.name ? `${it.name} (${it.login})` : it.login %> - - - -
- <% if (it.avatarUrl) { %> - - <% } %> -
<%= it.name || it.login %>
-
<%= it.login %>
- <% if (it.bio) { %> -
<%= it.bio %>
- <% } %> - <% if (it.followers) { %> -
<%= it.followers %> followers<%= it.following ? ` · ${it.following} following` : "" %>
- <% } %> - <% if (it.company) { %> -
<%= it.company %>
- <% } %> - <% if (it.location) { %> -
<%= it.location %>
- <% } %> - <% for (const link of it.links) { %> - - <% } %> -
- - <% if (it.pinned.length > 0) { %> -
-

Pinned

- <% for (const repo of it.pinned) { %> -
-
<%= repo.owner === it.login ? repo.name : `${repo.owner}/${repo.name}` %>
- <% if (repo.description) { %> -
<%= repo.description %>
- <% } %> - <% if (repo.language) { %> - <%= repo.language %> - <% } %> - <% if (repo.stars) { %> - stars <%= repo.stars %> - <% } %> - <% if (repo.forks) { %> - forks <%= repo.forks %> - <% } %> -
- <% } %> -
- <% } %> - - - - -- cgit v1.3.1