diff --git a/core/urls.py b/core/urls.py index abf8ffc..64f9484 100644 --- a/core/urls.py +++ b/core/urls.py @@ -4,5 +4,6 @@ from . import views urlpatterns = [ path('update_database', views.update_database, name='update_database'), path('clear_cache', views.clear_cache, name='clear_cache'), - path('regen_static_files', views.regen_static_files, name='regen_static_files') + path('regen_static_files', views.regen_static_files, name='regen_static_files'), + path('reload_server', views.reload_server, name='reload_server') ] \ No newline at end of file diff --git a/core/views.py b/core/views.py index 3d8b995..204f4f0 100644 --- a/core/views.py +++ b/core/views.py @@ -17,4 +17,7 @@ def clear_cache(request): def regen_static_files(request): call_command('collectstatic', '--noinput') message = "Les fichiers statics ont bien été générés !" - return render(request, 'home.html', {'message': message}) \ No newline at end of file + return render(request, 'home.html', {'message': message}) + +def reload_server(request): + pass \ No newline at end of file diff --git a/static/css/app.css b/static/css/app.css index a4ddad5..2531ab5 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -2672,4 +2672,22 @@ ul.flash_messages li.error { ul.flash_messages li.success { background-color: var(--success); color: var(--success-contrast); +} + +.message-warning { + color: var(--neutral-900); + background: var(--neutral-200); + border: 1px solid var(--warning); + padding: 10px; + border-radius: 5px; + margin-bottom: 10px; +} + +.message-info { + color: var(--neutral-900); + background: var(--neutral-200); + border: 1px solid var(--primary); + padding: 10px; + border-radius: 5px; + margin-bottom: 10px; } \ No newline at end of file diff --git a/templates/maintenance.html b/templates/maintenance.html index 52f40a9..77a3aa7 100644 --- a/templates/maintenance.html +++ b/templates/maintenance.html @@ -19,8 +19,10 @@