151 lines
4.1 KiB
HTML
151 lines
4.1 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
{% if description %}<meta name="description" content="{{ description }}" />{% endif %}
|
|
{% if keywords %}<meta name="keywords" content="{{ keywords }}" />{% endif %}
|
|
{% if author %}<meta name="author" content="{{ author }}" />{% endif %}
|
|
{% if canonical %}<link rel="canonical" href="{{ canonical }}" />{% endif %}
|
|
<title>{{ title|default:"FeedVault" }}</title>
|
|
<script src="{% static 'htmx.min.js' %}" defer></script>
|
|
<style>
|
|
html {
|
|
max-width: 88ch;
|
|
padding: calc(1vmin + 0.5rem);
|
|
margin-inline: auto;
|
|
font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
Helvetica, Arial, sans-serif;
|
|
color-scheme: light dark;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
}
|
|
|
|
.search {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 1rem;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.leftright {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.left {
|
|
margin-right: auto;
|
|
}
|
|
|
|
.right {
|
|
margin-left: auto;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 10rem;
|
|
resize: vertical;
|
|
}
|
|
|
|
.messages {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.error {
|
|
color: red;
|
|
}
|
|
|
|
.success {
|
|
color: green;
|
|
}
|
|
|
|
.warning {
|
|
color: orange;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li {% if message.tags %}class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<span class="title">
|
|
<h1>
|
|
<a href="{% url 'index' %}">FeedVault</a>
|
|
</h1>
|
|
</span>
|
|
<div class="leftright">
|
|
<div class="left">
|
|
<small>Archive of
|
|
<a href="https://en.wikipedia.org/wiki/Web_feed">web feeds</a>.
|
|
{% if amount_of_feeds %}{{ amount_of_feeds }} feeds.{% endif %}
|
|
{% if db_size %}~{{ db_size }}.{% endif %}
|
|
</small>
|
|
</div>
|
|
<div class="right">
|
|
<form action="{% url 'search' %}" method="get">
|
|
<input type="text" name="q" placeholder="Search" />
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<nav>
|
|
<small>
|
|
<div class="leftright">
|
|
<div class="left">
|
|
<a href="{% url 'index' %}">Home</a> |
|
|
<a href="{% url 'domains' %}">Domains</a> |
|
|
<a href="{% url 'feeds' %}">Feeds</a> |
|
|
<a href="{% url 'api_v1:openapi-view' %}">API</a>
|
|
</div>
|
|
<div class="right">
|
|
<a href="https://github.com/TheLovinator1/FeedVault">GitHub</a> |
|
|
<a href="https://github.com/sponsors/TheLovinator1">Donate</a>
|
|
<!-- Show login if not logged in -->
|
|
{% if not user.is_authenticated %}
|
|
| <a href="{% url 'login' %}">Login</a>
|
|
{% endif %}
|
|
<!-- Show username if logged in -->
|
|
{% if user.is_authenticated %}
|
|
| <a href="{% url 'profile' %}">{{ user.username }}</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</small>
|
|
</nav>
|
|
<hr />
|
|
<main>
|
|
{% block content %}<!-- default content -->{% endblock %}
|
|
</main>
|
|
<hr />
|
|
<footer>
|
|
<small>
|
|
<div class="leftright">
|
|
<div class="left">
|
|
Made by <a href="https://github.com/TheLovinator1">Joakim Hellsén</a>.
|
|
</div>
|
|
<div class="right">No rights reserved.</div>
|
|
</div>
|
|
<div class="leftright">
|
|
<div class="left">
|
|
<a href="mailto:hello@feedvault.se">hello@feedvault.se</a>
|
|
</div>
|
|
<div class="right">A birthday present for Plipp ❤️</div>
|
|
</div>
|
|
</small>
|
|
</footer>
|
|
</body>
|
|
</html>
|