diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-18 07:27:21 +0100 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-18 07:27:21 +0100 |
| commit | 9659525bf2387af6deab9d401784b94b1f44d395 (patch) | |
| tree | c67dc1dd05bf2a8fa48dc123d6353d255a658ef1 /cgithub/views/repo.eta | |
| parent | 9819d8e5504d6f03d27ec6b8786eec8fe5a752a5 (diff) | |
| parent | 01494e6fa1345a509560e5e19a7f08cb2aac5cc8 (diff) | |
Diffstat (limited to 'cgithub/views/repo.eta')
| -rw-r--r-- | cgithub/views/repo.eta | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cgithub/views/repo.eta b/cgithub/views/repo.eta new file mode 100644 index 0000000..60746df --- /dev/null +++ b/cgithub/views/repo.eta @@ -0,0 +1,31 @@ +<% layout("/layouts/repo.eta") %> + +<% if (it.info) { %> + <div class="box repo-info"> + <% if (it.info.description) { %> + <div class="description"><%= it.info.description %></div> + <% } %> + <% if (it.info.website) { %> + <div class="detail"><img src="/static/icons/link.svg" alt="" class="icon"> <a href="<%= it.info.website %>" rel="noopener noreferrer"><%= it.info.website %></a></div> + <% } %> + <% if (it.info.stars) { %> + <span class="detail"><img src="/static/icons/star.svg" alt="stars" class="icon"> <%= it.info.stars %></span> + <% } %> + <% if (it.info.forks) { %> + <span class="detail"><img src="/static/icons/git-fork.svg" alt="forks" class="icon"> <%= it.info.forks %></span> + <% } %> + <% if (it.info.numReleases) { %> + <div class="detail"> + <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/releases"><%= it.info.numReleases %> releases</a> + <span id="latest-release"></span> + </div> + <% } %> + </div> +<% } %> + +<div class="placeholder languages box" data-src="/api/<%= it.repo.owner %>/<%= it.repo.name %>/sidebar"> + <div class="language-bar"><span style="width: 100%; background: #ededed"></span></div> + <ul class="language-list"><li>…</li></ul> +</div> + +<%~ include("./_tree", it) %> |
