fix release listing updates for legacy devices

This will also be needed for experimental support for new devices so
it's worth fixing it.
This commit is contained in:
Daniel Micay 2025-03-11 11:35:33 -04:00
parent e99e4d6d95
commit 4fad94b056
2 changed files with 7 additions and 5 deletions

View File

@ -27,10 +27,12 @@ async function updateReleases() {
const updateUrl = baseUrl + updateFilename; const updateUrl = baseUrl + updateFilename;
const release = document.getElementById(`${device}-${channel}`); const release = document.getElementById(`${device}-${channel}`);
const links = release.getElementsByTagName("a"); const links = release.querySelectorAll("a, span");
links[0].textContent = metadata[0]; links[0].textContent = metadata[0];
links[0].setAttribute("href", "#" + metadata[0]); if (links[0].nodeName == "A") {
links[0].setAttribute("href", "#" + metadata[0]);
}
links[1].setAttribute("href", factoryUrl); links[1].setAttribute("href", factoryUrl);
links[2].setAttribute("href", factoryUrl + ".sig"); links[2].setAttribute("href", factoryUrl + ".sig");
links[3].setAttribute("href", updateUrl); links[3].setAttribute("href", updateUrl);

View File

@ -11,7 +11,7 @@
{% if not "extended" in name %} {% if not "extended" in name %}
<td><a href="#[[{{codename}}-stable-BUILD_NUMBER]]">[[{{codename}}-stable-BUILD_NUMBER]]</a></td> <td><a href="#[[{{codename}}-stable-BUILD_NUMBER]]">[[{{codename}}-stable-BUILD_NUMBER]]</a></td>
{% else %} {% else %}
<td>[[{{codename}}-stable-BUILD_NUMBER]]</td> <td><span>[[{{codename}}-stable-BUILD_NUMBER]]</span></td>
{% endif %} {% endif %}
<td> <td>
<ul> <ul>
@ -26,7 +26,7 @@
{% if not "extended" in name %} {% if not "extended" in name %}
<td><a href="#[[{{codename}}-beta-BUILD_NUMBER]]">[[{{codename}}-beta-BUILD_NUMBER]]</a></td> <td><a href="#[[{{codename}}-beta-BUILD_NUMBER]]">[[{{codename}}-beta-BUILD_NUMBER]]</a></td>
{% else %} {% else %}
<td>[[{{codename}}-beta-BUILD_NUMBER]]</td> <td><span>[[{{codename}}-beta-BUILD_NUMBER]]</span></td>
{% endif %} {% endif %}
<td> <td>
<ul> <ul>
@ -41,7 +41,7 @@
{% if not "extended" in name %} {% if not "extended" in name %}
<td><a href="#[[{{codename}}-alpha-BUILD_NUMBER]]">[[{{codename}}-alpha-BUILD_NUMBER]]</a></td> <td><a href="#[[{{codename}}-alpha-BUILD_NUMBER]]">[[{{codename}}-alpha-BUILD_NUMBER]]</a></td>
{% else %} {% else %}
<td>[[{{codename}}-alpha-BUILD_NUMBER]]</td> <td><span>[[{{codename}}-alpha-BUILD_NUMBER]]</span></td>
{% endif %} {% endif %}
<td> <td>
<ul> <ul>