mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-26 12:34:07 +00:00
Also show changelog for updates. Small optimisations.
This commit is contained in:
parent
0bfe96110b
commit
e03bbcadcd
@ -38,9 +38,14 @@ document.addEventListener 'DOMContentLoaded', (event) ->
|
|||||||
#console.log("Meta: %o", meta)
|
#console.log("Meta: %o", meta)
|
||||||
vermeta = meta['versions'][ver]
|
vermeta = meta['versions'][ver]
|
||||||
|
|
||||||
|
updateText = ''
|
||||||
if vermeta['FULL'].length > 0
|
if vermeta['FULL'].length > 0
|
||||||
fullmeta = vermeta['FULL'][0]
|
fullmeta = vermeta['FULL'][0]
|
||||||
fullInfo = "✔️ (first released: #{fullmeta['published_first']})"
|
fullInfo = "✔️ (first released: #{fullmeta['published_first']})"
|
||||||
|
if fullmeta['note']['en']
|
||||||
|
updateText = fullmeta['note']['en']
|
||||||
|
updateText = updateText.replace /\n/g, '<br/>'
|
||||||
|
#updateText += '<br/><br/>'
|
||||||
else
|
else
|
||||||
fullInfo = "❌"
|
fullInfo = "❌"
|
||||||
|
|
||||||
@ -56,16 +61,18 @@ document.addEventListener 'DOMContentLoaded', (event) ->
|
|||||||
toList = toList.join ', '
|
toList = toList.join ', '
|
||||||
updateInfo = "<strong>OTA possible to #{toList}</strong>"
|
updateInfo = "<strong>OTA possible to #{toList}</strong>"
|
||||||
else
|
else
|
||||||
updateInfo = "No further OTA update."
|
updateInfo = "No OTA to future version."
|
||||||
|
|
||||||
tt_title.innerHTML = ver
|
tt_title.innerHTML = ver
|
||||||
tt_text.innerHTML = """
|
tt_text.innerHTML = """
|
||||||
for #{ref} - #{meta['variant']}<br/>
|
for #{ref}<br/>
|
||||||
|
#{meta['variant']}<br/>
|
||||||
<br/>
|
<br/>
|
||||||
FULL: #{fullInfo}<br/>
|
FULL: #{fullInfo}<br/>
|
||||||
OTA: #{otaInfo}<br/>
|
OTA: #{otaInfo}<br/>
|
||||||
|
#{updateInfo}<br/>
|
||||||
<br/>
|
<br/>
|
||||||
#{updateInfo}
|
#{updateText}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@ main {
|
|||||||
z-index: 200;
|
z-index: 200;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
|
max-width: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tooltip h1 {
|
#tooltip h1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user