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

Remove the RaspberryMatic specific firmware-section if the rmupdate addon is installed on a CCU3

This commit is contained in:
anli-xsigns 2019-01-11 13:11:16 +01:00
parent 5d5be91c25
commit 62a9ef7d24
2 changed files with 460 additions and 451 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea

View File

@ -281,7 +281,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
latest_firmware = fw.version;
latest_firmware_supported = fw.supported;
}
if (fw.installed) current_firmware = fw.version;
if (fw.installed) {
current_firmware = fw.version;
if (current_firmware.length <= 8) {
//ccu3 and not raspberrymatic because of short version string
$('#firmware_header').hide();
$('#firmware_summary').hide();
$('#firmware_list').hide();
}
}
var color = 'yellow';
if (fw.latest) color = 'green';
if (fw.installed) color = 'gray';
@ -967,7 +975,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</script>
</head>
<body>
<div style="position: fixed; left: 50%; top: 2vh; z-index: 2000">
<div style="position: fixed; left: 50%; top: 2vh; z-index: 2000">
<div style="position: relative; left: -50%;">
<div class="ui container">
<div id="message" class="ui message hidden" style="margin-left: 100px; margin-right: 100px; min-height: 50px; min-width: 340px">
@ -975,9 +983,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
</div>
</div>
</div>
</div>
<div id="content" style="padding: 0; margin: 0; width: 100%">
<div id="content" style="padding: 0; margin: 0; width: 100%">
<div style="padding-top: 5vw; padding-bottom: 5vw" class="ui container">
<h1 class="ui center aligned dividing header" data-i18n="title"></h1>
@ -1019,15 +1027,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</table>
</div>
<h2 class="ui header">
<h2 id="firmware_header" class="ui header">
<i class="settings icon"></i>
<div data-i18n="firmwares" class="content">
</div>
</h2>
<div class="ui list" id="firmware-summary">
<div id="firmware_summary" class="ui list" id="firmware-summary">
</div>
<div class="dimmable">
<div id="firmware_list" class="dimmable">
<div id="dimmer-firmware-info" class="ui active inverted dimmer">
<div class="ui loader" data-i18n="loading"></div>
</div>
@ -1140,9 +1148,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</table>
</div>
</div>
</div>
</div>
<div style="height:60vh;" id="modal-log" class="ui modal">
<div style="height:60vh;" id="modal-log" class="ui modal">
<i class="close icon"></i>
<div class="header" data-i18n="installation_log">
</div>
@ -1153,9 +1161,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<pre style="height:40vh; overflow-x:hidden; overflow-y:auto; white-space: pre-wrap;" id="log-content">
</pre>
</div>
</div>
</div>
<div id="modal-uninstall-addon" class="ui small basic modal transition scrolling">
<div id="modal-uninstall-addon" class="ui small basic modal transition scrolling">
<div data-i18n="uninstall_addon" class="header"></div>
<div class="content">
<p data-i18n="sure_to_uninstall_addon"></p>
@ -1166,9 +1174,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div data-i18n="uninstall" class="ui red approve inverted button">
</div>
</div>
</div>
</div>
<div id="modal-reboot" class="ui small basic modal transition scrolling">
<div id="modal-reboot" class="ui small basic modal transition scrolling">
<div data-i18n="reboot_system" class="header"></div>
<div class="content">
<p data-i18n="sure_to_reboot_system"></p>
@ -1179,9 +1187,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div data-i18n="reboot" class="ui red approve inverted button">
</div>
</div>
</div>
</div>
<div id="modal-shutdown" class="ui small basic modal transition scrolling">
<div id="modal-shutdown" class="ui small basic modal transition scrolling">
<div data-i18n="shutdown_system" class="header"></div>
<div class="content">
<p data-i18n="sure_to_shutdown_system"></p>
@ -1192,9 +1200,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div data-i18n="shutdown" class="ui red approve inverted button">
</div>
</div>
</div>
</div>
<div id="modal-move-userfs" class="ui small basic modal transition scrolling">
<div id="modal-move-userfs" class="ui small basic modal transition scrolling">
<div data-i18n="move_userfs" class="header"></div>
<div class="content">
<p data-i18n="sure_to_move_userfs"></p>
@ -1205,9 +1213,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div data-i18n="move" class="ui red approve inverted button">
</div>
</div>
</div>
</div>
<div id="modal-delete-partition-table" class="ui small basic modal transition scrolling">
<div id="modal-delete-partition-table" class="ui small basic modal transition scrolling">
<div data-i18n="delete_partition_table" class="header"></div>
<div class="content">
<p data-i18n="sure_to_delete_partition_table"></p>
@ -1218,9 +1226,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div data-i18n="delete" class="ui red approve inverted button">
</div>
</div>
</div>
</div>
<div id="modal-connect-wlan" class="ui modal">
<div id="modal-connect-wlan" class="ui modal">
<i class="close icon"></i>
<div class="header" data-i18n="connect_to_wlan">
</div>
@ -1235,9 +1243,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div id="submit-connect-wlan" class="ui primary submit button" data-i18n="connect"></div>
</form>
</div>
</div>
</div>
<div id="modal-login" class="ui modal">
<div id="modal-login" class="ui modal">
<i class="close icon"></i>
<div class="header" data-i18n="login">
</div>
@ -1258,7 +1266,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div id="submit-login" class="ui primary submit button" data-i18n="login"></div>
</form>
</div>
</div>
</div>
</body>
</html>