From c07865241ce113cbb26a939fd43fdf3461092c94 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 15 Jul 2026 00:16:30 -0400 Subject: User profile pages Co-Authored-By: Claude Fable 5 --- cgithub/views/user.eta | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 cgithub/views/user.eta (limited to 'cgithub/views/user.eta') diff --git a/cgithub/views/user.eta b/cgithub/views/user.eta new file mode 100644 index 0000000..cf2da94 --- /dev/null +++ b/cgithub/views/user.eta @@ -0,0 +1,58 @@ + + + + + + <%= 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