summaryrefslogtreecommitdiff
path: root/cgithub/views/repo.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-01-25 16:27:48 -0500
committerJoe Mou <dev@mou.fo>2026-01-25 17:46:15 -0500
commit0391e279f80f6406502b4069bf2e13d3f13ed56e (patch)
treebef2cd202af53fa1f394b2f26b2e9eb01bc985b4 /cgithub/views/repo.eta
parentafbacd71aca76b6fa2e671351d396f071f9fb3be (diff)
Repository page with info
Diffstat (limited to 'cgithub/views/repo.eta')
-rw-r--r--cgithub/views/repo.eta23
1 files changed, 23 insertions, 0 deletions
diff --git a/cgithub/views/repo.eta b/cgithub/views/repo.eta
new file mode 100644
index 0000000..0b345df
--- /dev/null
+++ b/cgithub/views/repo.eta
@@ -0,0 +1,23 @@
+<% layout("./layout") %>
+
+<% if (it.info) { %>
+ <div class="repo-info">
+ <% if (it.info.description) { %>
+ <div class="description"><%= it.info.description %></div>
+ <% } %>
+ <% if (it.info.website) { %>
+ <div><a href="<%= it.info.website %>" rel="noopener noreferrer"><%= it.info.website %></a></div>
+ <% } %>
+ <% if (it.info.stars) { %>
+ <span>★ <%= it.info.stars %></span>
+ <% } %>
+ <% if (it.info.watchers) { %>
+ <span>👁 <%= it.info.watchers %></span>
+ <% } %>
+ <% if (it.info.forks) { %>
+ <span>🔀 <%= it.info.forks %></span>
+ <% } %>
+ </div>
+<% } %>
+
+<%~ include("./_tree", it) %>