This repository has been archived on 2023-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyNyaaTa/pynyaata2/templates/layout.html.j2
2023-06-04 17:53:29 +02:00

76 lines
3.4 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="{{ current_lang }}">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
{% block head %}
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>{{ _("PyNyaaTa") }}</title>
{% endblock head %}
<link rel="stylesheet"
href="{{ url_for('static', filename='css/bulma.min.css') }}"/>
<link rel="stylesheet"
href="{{ url_for('static', filename='css/bulma-prefers-dark.min.css') }}"/>
<link rel="stylesheet"
href="{{ url_for('static', filename='css/bulma-tooltip.min.css') }}"/>
<link rel="stylesheet"
href="{{ url_for('static', filename='css/font-awesome.min.css') }}"/>
<link rel="stylesheet"
href="{{ url_for('static', filename='css/styles.css') }}"/>
</head>
<body>
{% if request.endpoint != "index" %}
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="{{ url_for('index') }}">{{ _("𝚷😼た") }}</a>
</div>
<div class="navbar-start">
{% block links %}
{% endblock links %}
</div>
<div class="navbar-menu">
<div class="navbar-end">
<form action="{{ url_for('search') }}" class="navbar-item">
<div class="field has-addons">
<div class="control">
{{ search_form.q(placeholder=_("Search animes ..."), class="input", value=request.args.get("q", "")) }}
</div>
<div class="control">
<button type="submit" class="button">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</nav>
{% endif %}
{% block body %}
{% endblock body %}
<footer class="has-text-centered is-size-7">
<span class="mr-2">
<i class="fa fa-user-plus"></i>
<a href="https://discord.com/users/133305654512320513" target="_blank">{{ _("Discord") }}</a>
</span>
<span class="mr-2">
<i class="fa fa-book"></i>
{# djlint:off H022 #}<a href="http://www.wtfpl.net" target="_blank">{{ _("Licence") }}</a>{# djlint:on #}
</span>
<span class="mr-2">
<i class="fa fa-code-fork"></i>
<a href="https://git.crystalyx.net/Xefir/PyNyaaTa" target="_blank">{{ _("Code") }}</a>
</span>
<span class="mr-2">
<i class="fa fa-cubes"></i>
<a href="https://hub.docker.com/r/xefir/pynyaata" target="_blank">{{ _("Docker") }}</a>
</span>
<br />
<i class="fa fa-heartbeat"></i>
{{ _("Next castastrophic life failure in about %s days", apocalypse_left.days) }}
</footer>
</body>
</html>