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/pynyaata/templates/layout.html

99 lines
4.5 KiB
HTML
Raw Permalink Normal View History

2019-11-29 14:04:32 +00:00
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
2021-07-11 08:10:25 +00:00
<meta name="description" content="Xefir's anime search engine (っ^‿^)っ">
<title>PyNyaaTa - {% block title %}{% endblock %}</title>
<link rel="icon" href="{{ url_for('static', filename='favicons/favicon.ico') }}">
2019-11-29 14:04:32 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/bulma.min.css') }}">
2020-12-02 16:23:22 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/bulma-prefers-dark.min.css') }}">
2019-11-29 14:04:32 +00:00
<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>
<nav class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="navbar-start">
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="Home" href="{{ url_for('home') }}">
π 😼た
2019-12-02 20:50:00 +00:00
</a>
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="Latest torrents" href="{{ url_for('latest') }}">
<i class="fa fa-newspaper-o"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">Latest torrents</span>
2019-11-30 15:52:13 +00:00
</a>
2022-03-04 08:46:21 +00:00
{% if not db_disabled %}
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="My seeded torrents"
href="{{ url_for('list_animes') }}">
<i class="fa fa-cloud-download"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">My seeded torrents</span>
</a>
{% endif %}
2019-12-12 21:55:16 +00:00
{% block add_button %}{% endblock %}
2019-11-30 15:52:13 +00:00
{% if request.args.get('q') %}
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="TVDB"
2021-03-08 13:05:20 +00:00
href="https://www.thetvdb.com/search?menu%5Btype%5D=series&query={{ request.args.get('q') }}"
2019-11-30 15:52:13 +00:00
target="_blank">
<i class="fa fa-television"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">TVDB</span>
2019-11-30 15:52:13 +00:00
</a>
<a class="navbar-item has-tooltip-bottom has-tooltip-hidden-desktop" data-tooltip="Nautiljon"
2019-11-30 15:52:13 +00:00
href="https://www.nautiljon.com/search.php?q={{ request.args.get('q') }}" target="_blank">
<i class="fa fa-rss"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">Nautiljon</span>
2019-11-30 15:52:13 +00:00
</a>
{% endif %}
2019-11-29 14:04:32 +00:00
</div>
<div class="navbar-end">
<form action="{{ url_for('search') }}" class="navbar-item">
<div class="field has-addons">
<div class="control">
2019-12-15 19:36:33 +00:00
{{ search_form.q(placeholder='Search ...', class='input', value=request.args.get('q', '')) }}
2019-11-29 14:04:32 +00:00
</div>
<div class="control">
<button type="submit" class="button is-info">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</nav>
<section class="section" role="main">
2019-12-15 15:22:39 +00:00
{% if action_form %}
{% if action_form.errors %}
<div class="notification is-danger">
2019-12-15 16:54:44 +00:00
<button class="delete" onclick="this.parentNode.style.display = 'none'"></button>
2019-12-15 15:22:39 +00:00
<ul>
{% for field in action_form.errors %}
{% for error in action_form.errors[field] %}
<li>"{{ field }}" => {{ error }}</li>
{% endfor %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if action_form.message %}
<div class="notification is-success">
2019-12-15 17:34:20 +00:00
<button class="delete" onclick="this.parentNode.style.display = 'none'"></button>
2019-12-15 15:22:39 +00:00
{{ action_form.message }}
</div>
{% endif %}
{% endif %}
2019-11-29 14:04:32 +00:00
{% block body %}{% endblock %}
</section>
2020-12-04 08:23:05 +00:00
<footer>
<b>PyNyaata</b> made by <i>Xéfir Destiny</i>.
This software is open source under <a target="_blank" href="http://www.wtfpl.net">WTFPL</a> license !
Please look at the <a target="_blank" href="https://git.crystalyx.net/Xefir/PyNyaaTa">source code</a>
or <a target="_blank" href="https://hub.docker.com/r/xefir/pynyaata">host it</a> yourself o/
</footer>
2019-11-29 14:04:32 +00:00
</body>
</html>