1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Mark experimental firmware releases. Fixes #22

This commit is contained in:
Jan Schneider 2020-01-26 19:55:15 +01:00
parent 60a2dd7acb
commit 777601f52c

View File

@ -316,15 +316,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}); });
var available = (fw.url ? 'checked=""' : '') var available = (fw.url ? 'checked=""' : '')
var supported = (fw.supported ? 'checked=""' : '') var experimental = (fw.experimental ? 'checked=""' : '')
var downloaded = (fw.image ? 'checked=""' : '') var downloaded = (fw.image ? 'checked=""' : '')
var cls = ''; var cls = '';
if (fw.installed) cls = ' class="warning"'; if (fw.installed) cls = ' class="warning"';
if (fw.experimental) cls = ' class="error"';
if (fw.latest) cls = ' class="positive"'; if (fw.latest) cls = ' class="positive"';
$("#firmware-info tbody").append($('<tr' + cls + '>').append( $("#firmware-info tbody").append($('<tr' + cls + '>').append(
$('<td>').append($('<a>', {text: fw.version, title: i18next.t('open_release_info'), href: fw.info_url, target: "_blank"})), $('<td>').append($('<a>', {text: fw.version, title: i18next.t('open_release_info'), href: fw.info_url, target: "_blank"})),
$('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+available+'>'),$('<label></label>'))), $('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+available+'>'),$('<label></label>'))),
$('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+supported+'>'),$('<label></label>'))), $('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+experimental+'>'),$('<label></label>'))),
$('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+downloaded+'>'),$('<label></label>'))), $('<td class="center aligned">').append($('<div class="ui disabled checkbox">').append($('<input type="checkbox" disabled="disabled" '+downloaded+'>'),$('<label></label>'))),
$('<td class="center aligned">').append(bdelete, binstall) $('<td class="center aligned">').append(bdelete, binstall)
)); ));
@ -794,6 +795,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
version: 'Version', version: 'Version',
available: 'Available', available: 'Available',
supported: 'Supported', supported: 'Supported',
experimental: 'Experimental',
downloaded: 'Downloaded', downloaded: 'Downloaded',
action: 'Action', action: 'Action',
delete_download: 'Delete download', delete_download: 'Delete download',
@ -880,6 +882,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
version: 'Version', version: 'Version',
available: 'Verfügbar', available: 'Verfügbar',
supported: 'Unterstützt', supported: 'Unterstützt',
experimental: 'Experimentell',
downloaded: 'Heruntergeladen', downloaded: 'Heruntergeladen',
action: 'Aktion', action: 'Aktion',
delete_download: 'Download löschen', delete_download: 'Download löschen',
@ -1061,7 +1064,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tr> <tr>
<th data-i18n="version"></th> <th data-i18n="version"></th>
<th class="center aligned" data-i18n="available"></th> <th class="center aligned" data-i18n="available"></th>
<th class="center aligned" data-i18n="supported"></th> <th class="center aligned" data-i18n="experimental"></th>
<th class="center aligned" data-i18n="downloaded"></th> <th class="center aligned" data-i18n="downloaded"></th>
<th class="center aligned" data-i18n="action"></th> <th class="center aligned" data-i18n="action"></th>
</tr> </tr>