Show user info about mandatory updates.

This commit is contained in:
James Cole
2021-06-08 19:19:56 +02:00
parent 81669bfcc1
commit 9873365369
7 changed files with 114 additions and 5 deletions

View File

@@ -83,6 +83,7 @@ return [
'flash_info' => 'Message',
'flash_warning' => 'Warning!',
'flash_error' => 'Error!',
'flash_danger' => 'Danger!',
'flash_info_multiple' => 'There is one message|There are :count messages',
'flash_error_multiple' => 'There is one error|There are :count errors',
'net_worth' => 'Net worth',

View File

@@ -8,6 +8,13 @@
</div>
{% endif %}
{# MANDATORY UPDATE MESSAGE #}
{% if upgrade_security_message and upgrade_security_level %}
<div class="alert alert-{{ upgrade_security_level }} alert-dismissible" role="alert">
<strong>{{ ('flash_'~upgrade_security_level)|_ }}</strong> <i class="fa fa-exclamation-triangle"></i> {{ upgrade_security_message }}
</div>
{% endif %}
{# SUCCESS MESSAGE (ALWAYS SINGULAR) #}
{% if session_has('success') %}
<div class="alert alert-success alert-dismissible" role="alert">