Files
ASF_tools/asf-cloud-server/testarena_1/app/templates/base.html
2025-11-28 11:22:07 +01:00

43 lines
1.4 KiB
HTML

<!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>