From 8571e82cc4b97209624e353c29ff6490c884befa Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 7 May 2019 07:46:06 -0400 Subject: [PATCH] add preformatted list of devices This avoids having the length of the page drastically changed, improving the user experience especially in browsers that are otherwise unable to provide a proper link to an anchor below this. --- static/releases.html | 93 ++++++++++++++++++++++++++++++++++++++++++-- static/releases.js | 10 +---- 2 files changed, 92 insertions(+), 11 deletions(-) diff --git a/static/releases.html b/static/releases.html index d56a8bb8..b50073a6 100644 --- a/static/releases.html +++ b/static/releases.html @@ -49,12 +49,99 @@ it's not possible to downgrade unless a downgrade update package is generated, so use the Stable channel if you cannot tolerate dealing with temporary issues while a new release for the Beta channel is being created.

+ +

Stable channel

-
+ +
+

Pixel 3 XL

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 3

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 2 XL

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 2

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel XL (legacy)

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel (legacy)

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+

Beta channel

-
+ +
+

Pixel 3 XL

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 3

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 2 XL

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel 2

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel XL (legacy)

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +
+
+

Pixel (legacy)

+

Version loading...

+ Factory image url loading...
+ Factory image signature loading...
+ OTA update url loading... +

Changelog

@@ -154,6 +241,6 @@ Twitter - + diff --git a/static/releases.js b/static/releases.js index b5d934cb..cb7adae9 100644 --- a/static/releases.js +++ b/static/releases.js @@ -76,14 +76,8 @@ for (const channel of channels) { release.appendChild(document.createElement("br")); release.appendChild(createLink(updateUrl, updateFilename)); - const list = document.getElementById(channel); - for (const item of list.children) { - if (model > item.dataset.model) { - list.insertBefore(release, item); - return; - } - } - list.appendChild(release); + const div = document.getElementById(device + "-" + channel); + div.parentNode.replaceChild(release, div); }); } }