This commit is contained in:
2025-12-27 01:14:47 +01:00
commit 986f3ae5b5
49 changed files with 8278 additions and 0 deletions

42
app/templates/base.html Normal file
View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}ASF TestArena{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
{% if current_user.is_authenticated %}
<nav class="navbar">
<div class="navbar-brand">
<img src="{{ url_for('static', filename='uploads/icon.png') }}" alt="Logo">
<h2>ASF TestArena</h2>
</div>
<div class="navbar-menu">
<a href="{{ url_for('dashboard.index') }}">Dashboard</a>
<a href="{{ url_for('jobs.submit') }}">Submit Job</a>
{% if current_user.is_admin %}
<a href="{{ url_for('admin.index') }}">Admin</a>
{% endif %}
<span>{{ current_user.username }}</span>
<a href="{{ url_for('auth.logout') }}">Logout</a>
</div>
</nav>
{% endif %}
<div class="container">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>