cheesy/moku/templates/moku/base.jinja

54 lines
No EOL
2.4 KiB
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>moku.blog</title>
<link rel="stylesheet" href="{{ static('css/reset.css') }}" type="text/css">
<link rel="stylesheet" href="{{ static('css/moku.css') }}" type="text/css">
</head>
<body>
<header>
<h1>moku.blog</h1>
<nav>
<ul>
{% if request.user.is_authenticated %}
<li><a href="{{ url('feed') }}">{% trans %}feed{% endtrans %}</a></li>
<li><a href="{{ url('profile', username=request.user.username) }}">{% trans %}my profile{% endtrans %}</a></li>
<li><a href="{{ url('settings') }}">{% trans %}settings{% endtrans %}</a></li>
<li>
<form action="{{ url('logout') }}" method="POST" class="logout">
{% csrf_token %}
<button class="logout" type="submit">{% trans %}log out{% endtrans %}</button>
</form>
</li>
{% else %}
<li><a href="{{ url('feed') }}">{% trans %}feed{% endtrans %}</a></li>
<li><a href="{{ url('login') }}">{% trans %}log in{% endtrans %}</a></li>
<li><a href="{{ url('signup') }}">{% trans %}sign up{% endtrans %}</a></li>
{% endif %}
</ul>
</nav>
</header>
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>
{{ message }}
</li>
{% endfor %}
</ul>
{% endif %}
{% block content %}{% endblock content %}
<footer>
<nav>
<ul>
<li><a href="{{ url('changelog') }}">changelog</a></li>
<li><a href="{{ url('terms') }}">terms of use</a></li>
<li><a href="{{ url('privacy') }}">privacy policy</a></li>
<li><a href="https://ko-fi.com/mokublog" target="_blank" rel="noreferrer">donate❤</a></li>
</ul>
</nav>
</footer>
</body>
</html>