1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-11-09 23:06:45 +00:00

Also show changelog for updates. Small optimisations.

This commit is contained in:
Markus Birth 2018-01-07 22:32:20 +01:00
parent 0bfe96110b
commit e03bbcadcd
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 11 additions and 3 deletions

View File

@ -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}
""" """

View File

@ -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 {