Update index.html

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-09-18 23:29:20 +08:00 committed by GitHub
parent 86e2727c56
commit b436141665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -474,8 +474,12 @@
const url = `${baseUrl(v.version, g.arch)}${file}`;
let label = "Download";
if (download.title === "Cloud Hosted Router" && file.includes('chr')) {
if (v.version.charAt(0) === "6" ){
label = "Legacy";
} else {
label = file.includes("legacy-bios") ? "Legacy" : "UEFI";
}
}
return `<a href="${url}" class="inline-flex items-center gap-1.5 text-blue-500 dark:text-blue-400 hover:underline" title="${file}" target="_blank"><span class="iconify" data-icon="${ICONS.download}"></span> ${label}</a>`;
}).join("<br>");
return `<td class="px-6 py-4 text-center space-y-2">${links}</td>`;