diff options
| author | Joe Mou <dev@mou.fo> | 2026-02-21 19:01:55 +1100 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-02-21 19:02:05 +1100 |
| commit | 8319c4867da25739ee220128e050f0f965f6ed0b (patch) | |
| tree | baa08356c370cfdb0ceef9586e1c3d139c235564 /cgithub/views/repo.eta | |
| parent | 7b4521c0227663dadf78f611c1b515f7050015d0 (diff) | |
Add latest release details
By Gemini
Diffstat (limited to 'cgithub/views/repo.eta')
| -rw-r--r-- | cgithub/views/repo.eta | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cgithub/views/repo.eta b/cgithub/views/repo.eta index a6fcfb3..6204b69 100644 --- a/cgithub/views/repo.eta +++ b/cgithub/views/repo.eta @@ -18,7 +18,16 @@ <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></div> + <div class="detail"> + <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/releases"><%= it.info.numReleases %> releases</a> + <% if (it.info.latestReleaseTag) { %> + (<a href="/<%= it.repo.owner %>/<%= it.repo.name %>/releases/tag/<%= it.info.latestReleaseTag %>"><%= it.info.latestReleaseTag %></a> + <% if (it.info.latestReleaseDate) { %> + <time class="timestamp" title="<%= it.info.latestReleaseDate %>"><%= it.info.latestReleaseDate.split("T")[0] %></time> + <% } %> + ) + <% } %> + </div> <% } %> </div> <% } %> |
