mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
optional logo url
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
<link rel="stylesheet" href="https://unpkg.com/@tabler/core@latest/dist/css/tabler-vendors.min.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/@tabler/icons@latest/iconfont/tabler-icons.min.css">
|
||||
<script src="https://kit.fontawesome.com/65694932fa.js" crossorigin="anonymous"></script>
|
||||
<link rel="icon" href="{{ request.app.favicon_url }}">
|
||||
{% if request.app.favicon_url %}
|
||||
<link rel="icon" href="{{ request.app.favicon_url }}">
|
||||
{% endif %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.js"></script>
|
||||
<script src="https://unpkg.com/@tabler/core@latest/dist/js/tabler.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
|
||||
|
||||
@@ -2,17 +2,19 @@
|
||||
<div class="wrapper min-vh-100">
|
||||
<aside class="navbar navbar-vertical navbar-expand-lg navbar-dark">
|
||||
<div class="container-fluid">
|
||||
<h1 class="navbar-brand navbar-brand-autodark">
|
||||
<a href="{{ request.app.admin_path }}">
|
||||
<img
|
||||
src="{{ request.app.logo_url }}"
|
||||
width="110"
|
||||
height="32"
|
||||
alt="Tabler"
|
||||
class="navbar-brand-image"
|
||||
/>
|
||||
</a>
|
||||
</h1>
|
||||
{% if request.app.logo_url %}
|
||||
<h1 class="navbar-brand navbar-brand-autodark">
|
||||
<a href="{{ request.app.admin_path }}">
|
||||
<img
|
||||
src="{{ request.app.logo_url }}"
|
||||
width="110"
|
||||
height="32"
|
||||
alt="Tabler"
|
||||
class="navbar-brand-image"
|
||||
/>
|
||||
</a>
|
||||
</h1>
|
||||
{% endif %}
|
||||
<div class="collapse navbar-collapse" id="navbar-menu">
|
||||
<ul class="navbar-nav pt-lg-3">
|
||||
{% for resource in resources %} {% if resource.type == 'link' %}
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
<div class="page page-center">
|
||||
<div class="container-tight py-4">
|
||||
<div class="text-center mb-4">
|
||||
<a href="../.."
|
||||
><img
|
||||
src="{{ login_logo_url }}"
|
||||
height="36"
|
||||
alt=""
|
||||
/></a>
|
||||
{% if login_logo_url %}
|
||||
<a href="../.."
|
||||
><img
|
||||
src="{{ login_logo_url }}"
|
||||
height="36"
|
||||
alt=""
|
||||
/></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if error %}
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user