src/templates/base.html hinzugefügt

This commit is contained in:
2025-06-04 06:53:54 +00:00
parent b086848811
commit bde6033f58

35
src/templates/base.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>{{ title or "TeaShell" }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='dashboard.css') }}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
</head>
<body>
<div class="sidebar">
<div class="logo-container">
<img src="{{ url_for('static', filename='logo.png') }}" alt="Logo">
</div>
<ul class="nav">
<li><a href="{{ url_for('view_vaults') }}"><i class="fas fa-key"></i> Vaults</a></li>
<li><a href="{{ url_for('sftp') }}"><i class="fas fa-folder-open"></i> SFTP</a></li>
<li><a href="{{ url_for('users') }}"><i class="fas fa-users"></i> Profil</a></li>
</ul>
<div class="logout">
<a href="{{ url_for('logout') }}"><i class="fas fa-sign-out-alt"></i> Logout</a>
</div>
</div>
<div class="main-content">
<h1>{{ title }}</h1>
{% if current_user %}
<p style="margin-top: -10px;">
Eingeloggt als <strong>{{ current_user.username }}</strong>
</p>
{% endif %}
{% block content %}{% endblock %}
</div>
</body>
</html>