From 97e37347d64ab1cb99df465f15e83e389966c493 Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 10 Nov 2014 21:33:32 +0100 Subject: [PATCH] implementing the highly wanted select box for hand picking firmware builds that are available on baseflight.net --- _locales/en/messages.json | 9 +++ tabs/firmware_flasher.css | 16 ++++++ tabs/firmware_flasher.html | 14 ++--- tabs/firmware_flasher.js | 115 +++++++++++++++++-------------------- 4 files changed, 86 insertions(+), 68 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index f69c8564..7d45caa7 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -652,6 +652,9 @@ "firmwareFlasherNoReboot": { "message": "No reboot sequence" }, + "firmwareFlasherOnlineReleasesDescription": { + "message": "Available online firmware releases" + }, "firmwareFlasherNoRebootDescription": { "message": "Check if you are flashing board with bootloader pins shorted" }, @@ -697,6 +700,12 @@ "firmwareFlasherDate": { "message": "Date:" }, + "firmwareFlasherHash": { + "message": "Hash:" + }, + "firmwareFlasherUrl": { + "message": "Go to GitHub to review this commit..." + }, "firmwareFlasherMessage": { "message": "Message:" }, diff --git a/tabs/firmware_flasher.css b/tabs/firmware_flasher.css index 682f38f1..c19294df 100644 --- a/tabs/firmware_flasher.css +++ b/tabs/firmware_flasher.css @@ -70,6 +70,16 @@ font-weight: bold; margin-left: 6px; } +.tab-firmware_flasher .options select { + width: 180px; + height: 20px; + + border: 1px solid silver; +} +.tab-firmware_flasher .option.releases { + margin: 0 0 2px 0; + line-height: 20px; +} .tab-firmware_flasher .options .description { position: absolute; left: 200px; @@ -100,6 +110,12 @@ .tab-firmware_flasher .git_info p { padding: 5px; } +.tab-firmware_flasher .git_info p a { + font-weight: bold; +} +.tab-firmware_flasher .git_info p a:hover { + text-decoration: underline; +} .warning { border: 1px solid silver; } diff --git a/tabs/firmware_flasher.html b/tabs/firmware_flasher.html index 0fc11236..7a422410 100644 --- a/tabs/firmware_flasher.html +++ b/tabs/firmware_flasher.html @@ -4,6 +4,12 @@
+
+ + +
-
- - -