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

@@ -71,6 +71,11 @@
<td><span class="badge <%= helpers.statusClass(version.status) %>"><%= version.status %></span></td>
<td class="action-col">
<div class="action-group">
<% if (packageItem.type === 'deb' && version.filePath) { %>
<a class="icon-button subtle" href="/api/package-versions/<%= version.id %>/download" title="Download package" aria-label="Download package version <%= version.version %>">
<span class="material-symbols-outlined">download</span>
</a>
<% } %>
<form method="post" action="/package-versions/<%= version.id %>/latest">
<input type="hidden" name="returnTo" value="<%= currentPath %>">
<button class="icon-button subtle" type="submit" title="Đặt latest" aria-label="Đặt latest <%= version.version %>" <%= version.status === 'Latest' ? 'disabled' : '' %>>