summaryrefslogtreecommitdiff
path: root/cgithub/views
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
parent47ddd107c2f19a977798b8af230c652ba731cf45 (diff)
Add organization support to owner pages
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/views')
-rw-r--r--cgithub/views/home.eta2
-rw-r--r--cgithub/views/owner.eta (renamed from cgithub/views/user.eta)2
2 files changed, 2 insertions, 2 deletions
diff --git a/cgithub/views/home.eta b/cgithub/views/home.eta
index 0026ea3..604e4d0 100644
--- a/cgithub/views/home.eta
+++ b/cgithub/views/home.eta
@@ -12,7 +12,7 @@
</header>
<main>
- <p>Browse any GitHub repository by navigating to <code>/:owner/:repo</code>, or a user profile at <code>/:user</code></p>
+ <p>Browse any GitHub repository by navigating to <code>/:owner/:repo</code>, or a user or organization profile at <code>/:owner</code></p>
</main>
<h2>Credits</h2>
diff --git a/cgithub/views/user.eta b/cgithub/views/owner.eta
index cf2da94..4426400 100644
--- a/cgithub/views/user.eta
+++ b/cgithub/views/owner.eta
@@ -12,7 +12,7 @@
<img class="avatar" src="<%= it.avatarUrl %>" alt="" width="64" height="64">
<% } %>
<div class="repo"><%= it.name || it.login %></div>
- <div class="detail"><%= it.login %></div>
+ <div class="detail"><%= it.login %><%= it.type === "organization" ? " (organization)" : "" %></div>
<% if (it.bio) { %>
<div class="description"><%= it.bio %></div>
<% } %>