Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Support RC and Stable firmware releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Jan 8, 2015
1 parent e4bc970 commit a348b5d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
6 changes: 4 additions & 2 deletions changelog.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<span>2015.01.07 - 0.59.1 - cleanflight</span>
<span>2015.01.08 - 0.59.1 - cleanflight</span>
<p>
- Add support for Blackbox flight recorder feature (requires v1.5.0 firmware).<br />
- Update RSSI channel section to allow any channel.<br />
- Implemented configuration migration to aid with backwards compatibility.<br />
- Allow CLI access when connecting firmware with an out-of-date API.
- Allow CLI access when connecting firmware with an out-of-date API.<br />
- Support 'release candidate' and 'stable' releases.
</p>
<span>2015.01.04 - 0.59.0 - cleanflight</span>
<p>
Expand Down
7 changes: 6 additions & 1 deletion tabs/firmware_flasher.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
border-bottom: 1px solid silver;
background-color: #3f4241;
}

.tab-firmware_flasher .release_info .target {
color: blue;
}

.tab-firmware_flasher .release_info p {
padding: 5px;
}
Expand Down Expand Up @@ -166,7 +171,7 @@
.tab-firmware_flasher .buttons {
width: calc(100% - 20px);

position: absolute;
margin-top: 10px;
bottom: 10px;
}
.tab-firmware_flasher .buttons a {
Expand Down
1 change: 1 addition & 0 deletions tabs/firmware_flasher.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<strong i18n="firmwareFlasherReleaseName"></strong> <a i18n_title="firmwareFlasherReleaseUrl" class="name" href="#" target="_blank"></a><br />
<strong i18n="firmwareFlasherReleaseFile"></strong> <a i18n_title="firmwareFlasherReleaseFileUrl" class="file" href="#" target="_blank"></a><br />
<strong i18n="firmwareFlasherReleaseDate"></strong> <span class="date"></span><br />
<strong i18n="firmwareFlasherReleaseStatus"></strong> <span class="status"></span><br />
<strong i18n="firmwareFlasherReleaseNotes"></strong> <br />
<div class=notes></div>
</p>
Expand Down
16 changes: 13 additions & 3 deletions tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,18 @@ TABS.firmware_flasher.initialize = function (callback) {
"file" : asset.name,
"target" : target,
"date" : formattedDate,
"notes" : release.body
"notes" : release.body,
"status" : release.prerelease ? "release-candidate" : "stable"
};

var select_e =
$("<option value='{0}_{1}'>{2} {3} {4}</option>".format(
$("<option value='{0}_{1}'>{2} {3} {4} ({5})</option>".format(
releaseIndex,
assetIndex,
summary.name,
summary.target,
summary.date
summary.date,
summary.status
)).data('summary', summary);

releases_e.append(select_e);
Expand Down Expand Up @@ -215,6 +217,14 @@ TABS.firmware_flasher.initialize = function (callback) {
}

$('div.release_info .target').text(summary.target);

var status_e = $('div.release_info .status');
if (summary.status == 'release-candidate') {
$('div.release_info .status').html(chrome.i18n.getMessage('firmwareFlasherReleaseStatusReleaseCandidate')).show();
} else {
status_e.hide();
}

$('div.release_info .name').text(summary.name).prop('href', summary.releaseUrl);
$('div.release_info .date').text(summary.date);
$('div.release_info .file').text(summary.file).prop('href', summary.url);
Expand Down

0 comments on commit a348b5d

Please sign in to comment.