summaryrefslogtreecommitdiff
path: root/cgithub/views/_release.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-02-21 21:53:32 +1100
committerJoe Mou <dev@mou.fo>2026-02-21 21:53:55 +1100
commit0d95c588319e6f25f4b24612e730f662e209b5dc (patch)
tree2a388ad18db916a00f7c878507cda388e745b3ea /cgithub/views/_release.eta
parent8319c4867da25739ee220128e050f0f965f6ed0b (diff)
Release assets
Also fix release content parsing.
Diffstat (limited to 'cgithub/views/_release.eta')
-rw-r--r--cgithub/views/_release.eta13
1 files changed, 13 insertions, 0 deletions
diff --git a/cgithub/views/_release.eta b/cgithub/views/_release.eta
index 4769f9b..a8838fb 100644
--- a/cgithub/views/_release.eta
+++ b/cgithub/views/_release.eta
@@ -16,4 +16,17 @@
<% if (it.release.bodyHtml) { %>
<%~ it.release.bodyHtml %>
<% } %>
+ <% if (it.release.assets && it.release.assets.length > 0) { %>
+ <footer>
+ <h3>Assets</h3>
+ <% for (const asset of it.release.assets) { %>
+ <div>
+ <a href="<%= asset.url %>"><%= asset.name %></a>
+ <% if (asset.publishedAt) { %>
+ <time class="timestamp" title="<%= asset.publishedAt %>"><%= asset.publishedAt.split("T")[0] %></time>
+ <% } %>
+ </div>
+ <% } %>
+ </footer>
+ <% } %>
</div>