Show admin messages only on login and home pages

This commit is contained in:
pluja 2020-10-06 19:52:42 +02:00
parent c60b3ade82
commit 282618b6b8
3 changed files with 21 additions and 8 deletions

View File

@ -23,14 +23,6 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if config.show_admin_message %}
<div class="ui warning message">
<div class="header">
{{config.admin_message_title}}
</div>
{{config.admin_message}}
</div>
{% endif %}
<div class="ui icon menu overflow-auto"> <div class="ui icon menu overflow-auto">
<a href="{{ url_for('index') }}"><div class="item"> <a href="{{ url_for('index') }}"><div class="item">

View File

@ -37,6 +37,17 @@
} }
</style> </style>
{% if config.show_admin_message %}
<div class="text container ui">
<div class="ui warning message">
<div class="header">
{{config.admin_message_title}}
</div>
{{config.admin_message}}
</div>
</div>
{% endif %}
<div style="margin: 2em" class="ui one column centered grid"> <div style="margin: 2em" class="ui one column centered grid">
<div class="row"> <div class="row">
<div class="column"> <div class="column">

View File

@ -1,6 +1,16 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
{% if config.show_admin_message %}
<div class="text container ui">
<div class="ui warning message">
<div class="header">
{{config.admin_message_title}}
</div>
{{config.admin_message}}
</div>
</div>
{% endif %}
<h2 class="ui centered header">Login</h2> <h2 class="ui centered header">Login</h2>
<div class="ui grid"> <div class="ui grid">
<div class="ui one column stackable center aligned page grid" id="container"> <div class="ui one column stackable center aligned page grid" id="container">