restructure for docker

This commit is contained in:
Ville Rantanen
2023-07-24 20:02:49 +03:00
parent 58abf04d2c
commit a0c0d69c5e
8 changed files with 213 additions and 146 deletions

View File

@@ -11,7 +11,8 @@
</head>
<body>
<nav>
<a class=logo href="{{ url_for('index') }}">A</a>
<!--
<a class=logo href="{{ url_for('index') }}">⛤</a>
<div style="margin:auto"></div>
{%- if user is not none -%}
<a href="{{ url_for('user_edit') }}">
@@ -31,8 +32,36 @@
{%- endif -%}
<a href="{{ url_for('login') }}">Login</a>
{%- endif -%}
<span> | </span>
<a href="{{ url_for('help') }}">Help</a>
<a href="https://www.markdownguide.org/cheat-sheet/" target=_blank>Syntax help</a>
-->
<div class="navbar">
<div class="dropdown">
<button class="dropbtn"><img class="button_image" src={{ url_for('static', filename='button.png') }}>
<!--i class="fa fa-caret-down"></i-->
</button>
<div class="dropdown-content">
<a href="{{ url_for('index') }}">Home</a>
{%- if user is not none -%}
<a href="{{ url_for('user_edit') }}">
Profile
{%- if user.is_banned() %} (banned for {{ format_until(user.banned_until) }}){% endif -%}
</a>
{%- if user.is_admin() -%}
<a href="{{ url_for('admin') }}">Admin panel</a>
{%- endif -%}
<a href="{{ url_for('logout') }}">Logout</a>
{%- else -%}
{%- if config.registration_enabled -%}
<a href="{{ url_for('register') }}">Register</a>
{%- endif -%}
<a href="{{ url_for('login') }}">Login</a>
{%- endif -%}
{%- if user is not none -%}
<a href="https://www.markdownguide.org/cheat-sheet/" target=_blank>Syntax help</a>
{%- endif -%}
</div>
</div>
</div>
</nav>
<main>
<h1>{{ title }}</h1>