Skip to content

Commit

Permalink
Show version on updates page [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Oct 16, 2023
1 parent 9504c00 commit 04ceb22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,16 @@
if (!(date in movesbydate)) {
movesbydate[date] = []
}
movesbydate[date].push([name, server])
var version = move["version"].replace(/;.*/, "").replace("Version", "version");
movesbydate[date].push([name, version, server])
}
}
}
for (var date of Object.keys(movesbydate).sort().reverse()) {
$("#main").append("<h5>" + date + "</h5>")
ul = $("<ul/>")
for (var [name, server] of movesbydate[date].sort()) {
ul.append($(`<li class="${server}"> ${name}${server} </li>`))
for (var [name, version, server] of movesbydate[date].sort()) {
ul.append($(`<li> <span class="${server}">${name}</span> ${version} → <span class="${server}">${server}</span> </li>`))
}
$("#main").append(ul)
}
Expand Down

0 comments on commit 04ceb22

Please sign in to comment.