Initial commit for LaunchPad app

This commit is contained in:
2025-09-10 14:56:26 +03:00
commit 655e20a476
10 changed files with 433 additions and 0 deletions

33
templates/base.html Normal file
View File

@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}LaunchPad Admin{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<header class="topbar">
<div class="brand">LaunchPad Admin</div>
<nav>
{% if session.get('user') %}
<a href="{{ url_for('apps_list') }}">Home</a>
<a href="{{ url_for('logout') }}">Logout</a>
{% endif %}
</nav>
</header>
<main class="container">
{% with messages = get_flashed_messages(with_categories=True) %}
{% if messages %}
<div class="flash">
{% for cat, msg in messages %}
<div class="flash-item {{ cat }}">{{ msg }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
</body>
</html>