Fix deprecation warnings
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ page_title }} - {{ app_name }}</title>
|
||||
<title>{{ _p.page_title }} - {{ _p.app_name }}</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/assets/css/bootstrap.css" rel="stylesheet" crossorigin="anonymous"/>
|
||||
@@ -12,7 +12,7 @@
|
||||
<body>
|
||||
<div class="d-flex flex-column flex-shrink-0 p-3 bg-light" style="width: 280px;">
|
||||
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-dark text-decoration-none">
|
||||
<span class="fs-4">{{ app_name }}</span>
|
||||
<span class="fs-4">{{ _p.app_name }}</span>
|
||||
</a>
|
||||
<hr>
|
||||
<ul class="nav nav-pills flex-column mb-auto">
|
||||
@@ -27,7 +27,7 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{% if is_admin %}
|
||||
{% if _p.is_admin %}
|
||||
<hr/>
|
||||
<li>
|
||||
<a href="/admin/clients" class="nav-link link-dark">
|
||||
@@ -46,7 +46,7 @@
|
||||
<a href="#" class="d-flex align-items-center link-dark text-decoration-none dropdown-toggle" id="dropdownUser"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<img src="/assets/img/account.png" alt="" width="32" height="32" class="rounded-circle me-2">
|
||||
<strong>{{ user_name }}</strong>
|
||||
<strong>{{ _p.user_name }}</strong>
|
||||
</a>
|
||||
<ul class="dropdown-menu text-small shadow" aria-labelledby="dropdownUser">
|
||||
<li><a class="dropdown-item" href="/logout">Sign out</a></li>
|
||||
@@ -55,14 +55,14 @@
|
||||
</div>
|
||||
|
||||
<div class="page_body" style="flex: 1">
|
||||
{% if let Some(msg) = danger_message %}
|
||||
{% if let Some(msg) = _p.danger_message %}
|
||||
<div class="alert alert-danger">{{ msg }}</div>
|
||||
{% endif %}
|
||||
{% if let Some(msg) = success_message %}
|
||||
{% if let Some(msg) = _p.success_message %}
|
||||
<div class="alert alert-success">{{ msg }}</div>
|
||||
{% endif %}
|
||||
|
||||
<h2 class="bd-title mt-0" style="margin-bottom: 40px;">{{ page_title }}</h2>
|
||||
<h2 class="bd-title mt-0" style="margin-bottom: 40px;">{{ _p.page_title }}</h2>
|
||||
|
||||
{% block content %}
|
||||
TO_REPLACE
|
||||
|
Reference in New Issue
Block a user