Compare commits

...

3 commits

8 changed files with 27 additions and 17 deletions

View file

@ -95,6 +95,7 @@ Those files are markdown files that are rendered as HTML. You have to supply the
The following files are expected:
* `imprint.md` with your imprint information.
* `privacy_policy.md` with your privacy policy.
## Settings

View file

@ -1,7 +1,3 @@
h1 {
font-size: 2rem
}
.pixelart {
image-rendering: crisp-edges;
}

View file

@ -84,9 +84,16 @@
{% endblock %}
</main>
<footer class="footer">
<div class="columns">
<div class="columns container">
<div class="column">
<a href="{% url 'imprint' %}">Imprint</a>
<ul>
<li>
<a href="{% url 'imprint' %}">Imprint</a>
</li>
<li>
<a href="{% url 'privacy_policy' %}">Privacy Policy</a>
</li>
</ul>
</div>
<div class="column">
<a href="https://git.srvspace.net/jo/community-backup">Source Code</a>

View file

@ -1,6 +1,8 @@
{% extends "base.html" %}
{% block content %}
<section class="section content">
<nav class="level">
<div class="level-left">
<h1 class="level-item">Your Borg Repositories</h1>
@ -9,13 +11,11 @@
<a class="level-item button is-primary" href="{% url 'borg_add' %}" role="button">Add Repository</a>
</div>
</nav>
<section class="section">
<p>Create a borg repository by specifying a name and the SSH public key that is allowed to access this repository. The name is only for your convenience. To set up the repository please follow the <a href="https://borgbackup.readthedocs.io/en/stable/">BorgBackup documentation</a>. There is also a <a href="https://borgbackup.readthedocs.io/en/stable/quickstart.html">Quick start guide</a> available.
<b>Always use encrypted backups!</b></p>
</section>
<section class="section">
<section class="section content">
<table class="table is-striped is-fullwidth is-hoverable">
<thead>
<th>Name</th>
@ -44,7 +44,7 @@
</section>
{% if BORG_SERVER_PUBKEYS %}
<section class="section">
<section class="section content">
<div class="card">
<header class="card-header">
<p class="card-header-title">Borg Server Public Keys</p>

View file

@ -1,12 +1,12 @@
{% extends "base.html" %}
{% block content %}
<h1 class="has-text-centered">Welcome to Community Backup!</h1>
<div class="content">
<section class="section">
<p>This is a service offering space for backups free of charge. This is a hobby project. It comes with no guarantees for anything, especially availability of the service. This service is in a testing phase at the moment. It might be unavailable at times and features might change quickly.</p>
<p>Currently this service offers backups only via <a href="https://www.borgbackup.org/">Borg Backup</a>.</p>
<p>To access this service you need an account. To register for an account you need a voucher. Vouchers are required to control the amount of users, so that there is enough space available for everyone.</p>
<h1 class="has-text-centered">Welcome to Community Backup!</h1>
<p>This is a service offering space for backups free of charge. This is a hobby project. It comes with no guarantees for anything, especially availability of the service. This service is in a testing phase at the moment. It might be unavailable at times and features might change quickly.</p>
<p>Currently this service offers backups only via <a href="https://www.borgbackup.org/">Borg Backup</a>.</p>
<p>To access this service you need an account. To register for an account you need a voucher. Vouchers are required to control the amount of users, so that there is enough space available for everyone.</p>
</section>
</div>
{% endblock %}

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
<section class="section">
<section class="section content">
{{ markdown_content|safe }}
</section >
{% endblock %}

View file

@ -19,4 +19,5 @@ urlpatterns = [
path("register/", views.RegisterUserView.as_view(), name="register"),
path("delete/", views.DeleteUserView.as_view(), name="delete"),
path("imprint/", views.ImprintView.as_view(), name="imprint"),
path("privacy-policy/", views.PrivacyPolicyView.as_view(), name="privacy_policy"),
]

View file

@ -51,6 +51,11 @@ class ImprintView(MarkdownView):
md = "imprint.md"
class PrivacyPolicyView(MarkdownView):
template_name = "markdown.html"
md = "privacy_policy.md"
class BorgView(LoginRequiredMixin, ListView):
template_name = "borg_list.html"
content_object_name = "borg_repositories"