dowload package

This commit is contained in:
2026-06-02 09:22:24 +07:00
parent 9cedf085a3
commit e7dce2f0e9
4 changed files with 18 additions and 1 deletions

View File

@@ -77,6 +77,11 @@
<a class="icon-button subtle" href="/packages/<%= item.id %>" title="Xem chi tiết" aria-label="Xem chi tiết <%= item.name %>">
<span class="material-symbols-outlined">visibility</span>
</a>
<% if (item.type === 'deb' && item.latestVersionId && item.artifact) { %>
<a class="icon-button subtle" href="/api/package-versions/<%= item.latestVersionId %>/download" title="Download latest package" aria-label="Download latest package <%= item.name %>">
<span class="material-symbols-outlined">download</span>
</a>
<% } %>
<button class="icon-button subtle" type="button" title="Update version" data-modal-open="updatePackageModal" data-package-update="<%= item.id %>">
<span class="material-symbols-outlined">upgrade</span>
</button>