83 lines
3.8 KiB
HTML
83 lines
3.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<!-- Bootstrap CSS -->
|
|
<link rel="stylesheet" href="https://bootswatch.com/4/darkly/bootstrap.min.css">
|
|
<!-- jQuery -->
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
|
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
|
crossorigin="anonymous"></script>
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
|
|
crossorigin="anonymous"></script>
|
|
<title>UnstableVortex CAFF Store</title>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-primary mb-3">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="{{ url_for('IndexView:index') }}">UnstableVortex CAFF Store</a>
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav mr-auto">
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for('IndexView:index') }}">Home</a>
|
|
</li>
|
|
{% if current_user.is_authenticated %}
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for('ProfileView:index') }}">Profile</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for('UploadView:index') }}">Upload</a>
|
|
</li>
|
|
{% if current_user.has_role('administrator') %}
|
|
<li class="nav-item active">
|
|
<a class="nav-link text-danger" href="/admin">Administrate</a>
|
|
</li>
|
|
{% endif %}
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for_security('logout') }}">Logout</a>
|
|
</li>
|
|
|
|
{% else %}
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for_security('login') }}">Login</a>
|
|
</li>
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="{{ url_for_security('register') }}">Register</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
<form class="form-inline my-2 my-lg-0" action="{{ url_for('IndexView:index') }}" method="get">
|
|
<input class="form-control mr-sm-2" name="search" type="text" placeholder="Search">
|
|
<button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="container my-2">
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
|
|
{{ message }}
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
<div class="container px-2">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html> |