mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Display a wanring message if server restart is required
This commit is contained in:
parent
626637a06a
commit
cacc272424
@ -5,6 +5,7 @@
|
|||||||
{% settings_value 'BARCODE_ENABLE' as barcodes %}
|
{% settings_value 'BARCODE_ENABLE' as barcodes %}
|
||||||
{% settings_value 'REPORT_ENABLE_TEST_REPORT' as test_report_enabled %}
|
{% settings_value 'REPORT_ENABLE_TEST_REPORT' as test_report_enabled %}
|
||||||
{% settings_value "REPORT_ENABLE" as report_enabled %}
|
{% settings_value "REPORT_ENABLE" as report_enabled %}
|
||||||
|
{% settings_value "SERVER_RESTART_REQUIRED" as server_restart_required %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@ -86,6 +87,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<main class='col ps-md-2 pt-2 pe-2'>
|
<main class='col ps-md-2 pt-2 pe-2'>
|
||||||
|
|
||||||
|
{% if server_restart_required %}
|
||||||
|
<div class='notification-area' id='restart-required'>
|
||||||
|
<div id='alert-restart-server' class='alert alert-danger' role='alert'>
|
||||||
|
<span class='fas fa-server'></span>
|
||||||
|
<b>{% trans "Server Restart Required" %}</b>
|
||||||
|
<small>
|
||||||
|
<br>
|
||||||
|
{% trans "A configuration option has been changed which requires a server restart" %}.
|
||||||
|
<br>
|
||||||
|
{% trans "Contact your system administrator for further information" %}
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block alerts %}
|
{% block alerts %}
|
||||||
<div class='notification-area' id='alerts'>
|
<div class='notification-area' id='alerts'>
|
||||||
<!-- Div for displayed alerts -->
|
<!-- Div for displayed alerts -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user