mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Show Dojo status
This commit is contained in:
parent
88f32762f1
commit
f303ff79f4
|
@ -181,6 +181,9 @@ def page_settings():
|
||||||
"docker_image_build_status_log": docker_image_build_status_log,
|
"docker_image_build_status_log": docker_image_build_status_log,
|
||||||
"docker_image_build_status": get_docker_image_build_status(),
|
"docker_image_build_status": get_docker_image_build_status(),
|
||||||
"docker_image_build_status_color": get_docker_image_build_status_color(),
|
"docker_image_build_status_color": get_docker_image_build_status_color(),
|
||||||
|
"dojo_status_log": get_journalctl_log("dojo"),
|
||||||
|
"dojo_status": get_service_status_basic_text("dojo"),
|
||||||
|
"dojo_status_color": get_service_status_color("dojo"),
|
||||||
"btcpayserver_status_log": get_journalctl_log("btcpayserver"),
|
"btcpayserver_status_log": get_journalctl_log("btcpayserver"),
|
||||||
"btcpayserver_status": get_service_status_basic_text("btcpayserver"),
|
"btcpayserver_status": get_service_status_basic_text("btcpayserver"),
|
||||||
"btcpayserver_status_color": get_service_status_color("btcpayserver"),
|
"btcpayserver_status_color": get_service_status_color("btcpayserver"),
|
||||||
|
|
|
@ -230,6 +230,11 @@
|
||||||
$("#docker_image_build_status").show();
|
$("#docker_image_build_status").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#show_dojo_status").on("click", function() {
|
||||||
|
$("#show_dojo_status").hide(0);
|
||||||
|
$("#dojo_status").show();
|
||||||
|
});
|
||||||
|
|
||||||
$("#show_btcpayserver_status").on("click", function() {
|
$("#show_btcpayserver_status").on("click", function() {
|
||||||
$("#show_btcpayserver_status").hide(0);
|
$("#show_btcpayserver_status").hide(0);
|
||||||
$("#btcpayserver_status").show();
|
$("#btcpayserver_status").show();
|
||||||
|
@ -245,6 +250,11 @@
|
||||||
$("#upgrade_status").show();
|
$("#upgrade_status").show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#show_upgrade_status_beta").on("click", function() {
|
||||||
|
$("#show_upgrade_status_beta").hide(0);
|
||||||
|
$("#upgrade_status_beta").show();
|
||||||
|
});
|
||||||
|
|
||||||
$("#show_firewall_status").on("click", function() {
|
$("#show_firewall_status").on("click", function() {
|
||||||
$("#show_firewall_status").hide(0);
|
$("#show_firewall_status").hide(0);
|
||||||
$("#firewall_status").show();
|
$("#firewall_status").show();
|
||||||
|
@ -640,6 +650,15 @@
|
||||||
<div id="docker_image_build_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{docker_image_build_status_log}}</pre></div>
|
<div id="docker_image_build_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{docker_image_build_status_log}}</pre></div>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|
||||||
|
<div class="settings_block_subheader">Dojo Status</div>
|
||||||
|
<div class="settings_block_subheader_status">
|
||||||
|
<div class="settings_block_subheader_status_icon {{ dojo_status_color }}"></div>
|
||||||
|
{{ dojo_status }}
|
||||||
|
</div>
|
||||||
|
<button id="show_dojo_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
|
||||||
|
<div id="dojo_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{dojo_status_log}}</pre></div>
|
||||||
|
<div class="divider"></div>
|
||||||
|
|
||||||
<div class="settings_block_subheader">BTCPay Server Status</div>
|
<div class="settings_block_subheader">BTCPay Server Status</div>
|
||||||
<div class="settings_block_subheader_status">
|
<div class="settings_block_subheader_status">
|
||||||
<div class="settings_block_subheader_status_icon {{ btcpayserver_status_color }}"></div>
|
<div class="settings_block_subheader_status_icon {{ btcpayserver_status_color }}"></div>
|
||||||
|
@ -960,8 +979,8 @@
|
||||||
{% elif upgrade_error %}
|
{% elif upgrade_error %}
|
||||||
<p style="color: red;">It appears a recent upgrade may not have fully completed.</p>
|
<p style="color: red;">It appears a recent upgrade may not have fully completed.</p>
|
||||||
<button id="upgrade" class="ui-button ui-widget ui-corner-all settings_button">Retry Upgrade</button>
|
<button id="upgrade" class="ui-button ui-widget ui-corner-all settings_button">Retry Upgrade</button>
|
||||||
<button id="show_upgrade_status" class="ui-button ui-widget ui-corner-all settings_button">Show Upgrade Logs</button>
|
<button id="show_upgrade_status_beta" class="ui-button ui-widget ui-corner-all settings_button">Show Upgrade Logs</button>
|
||||||
<div id="upgrade_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{upgrade_logs}}</pre></div>
|
<div id="upgrade_status_beta" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{upgrade_logs}}</pre></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user