Compare commits

..

No commits in common. "f3d152b454231d36036b089b20cf257c5f36346e" and "ceafcf58955549f3a932e4da8b25f6ea72bd2914" have entirely different histories.

8 changed files with 17 additions and 27 deletions

View file

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

View file

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

View file

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

View file

@ -1,8 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<section class="section content">
<nav class="level"> <nav class="level">
<div class="level-left"> <div class="level-left">
<h1 class="level-item">Your Borg Repositories</h1> <h1 class="level-item">Your Borg Repositories</h1>
@ -11,11 +9,13 @@
<a class="level-item button is-primary" href="{% url 'borg_add' %}" role="button">Add Repository</a> <a class="level-item button is-primary" href="{% url 'borg_add' %}" role="button">Add Repository</a>
</div> </div>
</nav> </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. <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> <b>Always use encrypted backups!</b></p>
</section> </section>
<section class="section content"> <section class="section">
<table class="table is-striped is-fullwidth is-hoverable"> <table class="table is-striped is-fullwidth is-hoverable">
<thead> <thead>
<th>Name</th> <th>Name</th>
@ -44,7 +44,7 @@
</section> </section>
{% if BORG_SERVER_PUBKEYS %} {% if BORG_SERVER_PUBKEYS %}
<section class="section content"> <section class="section">
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
<p class="card-header-title">Borg Server Public Keys</p> <p class="card-header-title">Borg Server Public Keys</p>

View file

@ -1,12 +1,12 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="content">
<section class="section">
<h1 class="has-text-centered">Welcome to Community Backup!</h1> <h1 class="has-text-centered">Welcome to Community Backup!</h1>
<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>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>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> <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> </section>
</div>
{% endblock %} {% endblock %}

View file

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

View file

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

View file

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