1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +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)
vermeta = meta['versions'][ver]
updateText = ''
if vermeta['FULL'].length > 0
fullmeta = vermeta['FULL'][0]
fullInfo = "✔️ (first released: #{fullmeta['published_first']})"
if fullmeta['note']['en']
updateText = fullmeta['note']['en']
updateText = updateText.replace /\n/g, '<br/>'
#updateText += '<br/><br/>'
else
fullInfo = ""
@ -56,16 +61,18 @@ document.addEventListener 'DOMContentLoaded', (event) ->
toList = toList.join ', '
updateInfo = "<strong>OTA possible to #{toList}</strong>"
else
updateInfo = "No further OTA update."
updateInfo = "No OTA to future version."
tt_title.innerHTML = ver
tt_text.innerHTML = """
for #{ref} - #{meta['variant']}<br/>
for #{ref}<br/>
#{meta['variant']}<br/>
<br/>
FULL: #{fullInfo}<br/>
OTA: #{otaInfo}<br/>
#{updateInfo}<br/>
<br/>
#{updateInfo}
#{updateText}
"""

View File

@ -24,6 +24,7 @@ main {
z-index: 200;
position: absolute;
display: none;
max-width: 70%;
}
#tooltip h1 {