Add display deletion endpoint and admin UI tweaks
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ title or "Signage" }}</title>
|
||||
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}" type="image/png" />
|
||||
<link rel="apple-touch-icon" href="{{ url_for('static', filename='favicon.png') }}" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
|
||||
</head>
|
||||
@@ -11,8 +13,14 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-light fixed-top app-navbar">
|
||||
<div class="container">
|
||||
<a class="navbar-brand d-flex align-items-center gap-2" href="/">
|
||||
<span class="brand-mark" aria-hidden="true">S</span>
|
||||
<span>Signage</span>
|
||||
<img
|
||||
class="brand-logo"
|
||||
src="{{ url_for('static', filename='logo.svg') }}"
|
||||
alt="Signage"
|
||||
width="34"
|
||||
height="34"
|
||||
/>
|
||||
|
||||
</a>
|
||||
|
||||
<button
|
||||
@@ -31,16 +39,9 @@
|
||||
<ul class="navbar-nav me-auto">
|
||||
{% if current_user.is_authenticated %}
|
||||
{% if current_user.is_admin %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('admin.dashboard') }}">Admin</a>
|
||||
</li>
|
||||
{# Dashboard link removed: users can click the logo to go to the dashboard. #}
|
||||
{% else %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('company.dashboard') }}">Dashboard</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('company.my_company') }}">My Company</a>
|
||||
</li>
|
||||
{# Dashboard link removed: users can click the logo to go to the dashboard. #}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
@@ -49,6 +50,9 @@
|
||||
{% if current_user.is_authenticated %}
|
||||
<div class="small text-muted">{{ current_user.email }}</div>
|
||||
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('auth.change_password') }}">Change password</a>
|
||||
{% if not current_user.is_admin %}
|
||||
<a class="btn btn-outline-ink btn-sm" href="{{ url_for('company.my_company') }}">My company</a>
|
||||
{% endif %}
|
||||
{% if session.get('impersonator_admin_id') %}
|
||||
<a class="btn btn-brand btn-sm" href="{{ url_for('auth.stop_impersonation') }}">Stop impersonation</a>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user