From e03bbcadcdd4e396457cd0f71ece18e7c5bdecac Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 7 Jan 2018 22:32:20 +0100 Subject: [PATCH] Also show changelog for updates. Small optimisations. --- assets/main.coffee | 13 ++++++++++--- assets/style.css | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/main.coffee b/assets/main.coffee index bf08c87..9975a24 100644 --- a/assets/main.coffee +++ b/assets/main.coffee @@ -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, '
' + #updateText += '

' else fullInfo = "❌" @@ -56,16 +61,18 @@ document.addEventListener 'DOMContentLoaded', (event) -> toList = toList.join ', ' updateInfo = "OTA possible to #{toList}" else - updateInfo = "No further OTA update." + updateInfo = "No OTA to future version." tt_title.innerHTML = ver tt_text.innerHTML = """ - for #{ref} - #{meta['variant']}
+ for #{ref}
+ #{meta['variant']}

FULL: #{fullInfo}
OTA: #{otaInfo}
+ #{updateInfo}

- #{updateInfo} + #{updateText} """ diff --git a/assets/style.css b/assets/style.css index 5c3f789..a76d938 100644 --- a/assets/style.css +++ b/assets/style.css @@ -24,6 +24,7 @@ main { z-index: 200; position: absolute; display: none; + max-width: 70%; } #tooltip h1 {