Show admin messages only on login and home pages
This commit is contained in:
parent
c60b3ade82
commit
282618b6b8
@ -23,14 +23,6 @@
|
||||
</div>
|
||||
</div>
|
||||
{% 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">
|
||||
<a href="{{ url_for('index') }}"><div class="item">
|
||||
|
@ -37,6 +37,17 @@
|
||||
}
|
||||
</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 class="row">
|
||||
<div class="column">
|
||||
|
@ -1,6 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% 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>
|
||||
<div class="ui grid">
|
||||
<div class="ui one column stackable center aligned page grid" id="container">
|
||||
|
Reference in New Issue
Block a user