This repository has been archived on 2023-10-15. You can view files and clone it, but cannot push or open issues or pull requests.

84 lines
3.9 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pricey Bot</title>
<script src="https://kit.fontawesome.com/4b444ef337.js" crossorigin="anonymous"></script>
<script type="application/javascript" src="{{ url_for('static', filename='scripts/dark-mode.js', version='0.1') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css', version='0.1') }}">
</head>
<body data-theme="light" onload="init()">
<section class="hero is-primary is-fullheight dark-toggle-animation">
<div class="hero-head">
<nav class="navbar">
<div class="container">
<div id="navbarMenuHeroA" class="navbar-menu">
<div class="navbar-start">
{% if current_user.is_authenticated %}
<span class="navbar-item">{{ current_user.name }} is logged in{% if current_user.administrator %}<br/><span class="navbar-item icon p-4">
<i class="fas fa-screwdriver-wrench"></i>
</span></span>
{% endif %}
{% endif %}
</div>
<div class="navbar-end">
{% if space_list is defined %}
<div class="select is-primary navbar-item m-4 p-4" >
<select name="space" id="space_option">
<option selected="selected" value="NaN">Please selelct a space!</option>
{% for i in space_list %}
<option value="{{ i[0] }}">{{ i[1] }}</option>
{% endfor %}
</select>
</div>
{% endif %}
<a href="{{ url_for('main.index') }}" class="navbar-item">
Home
</a>
{% if current_user.is_authenticated %}
<a href="{{ url_for('main.profile') }}" class="navbar-item">
Profile
</a>
<a href="{{ url_for('main.quotes') }}" class="navbar-item">
Quotes
</a>
{% endif %}
{% if not current_user.is_authenticated %}
<a href="{{ url_for('auth.login') }}" class="navbar-item">
Login
</a>
{% endif %}
{% if current_user.is_authenticated %}
<a href="{{ url_for('auth.logout') }}" class="navbar-item">
Logout
</a>
{% endif %}
</div>
</div>
</div>
</nav>
</div>
<div class="hero-body">
<div class="container has-text-centered">
{% block content %}
{% endblock %}
</div>
</div>
<div class="hero-foot">
<label class="is-pulled-right p-4">
<input name="dark-mode-toggle" class="dark-toggle" onclick="darkLight()" type="checkbox">
</label>
</div>
</section>
</body>
</html>