Compare commits
3 commits
ceafcf5895
...
f3d152b454
| Author | SHA1 | Date | |
|---|---|---|---|
| f3d152b454 | |||
| 5c05ec0a8b | |||
| d7df062509 |
8 changed files with 27 additions and 17 deletions
|
|
@ -95,6 +95,7 @@ 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
h1 {
|
|
||||||
font-size: 2rem
|
|
||||||
}
|
|
||||||
|
|
||||||
.pixelart {
|
.pixelart {
|
||||||
image-rendering: crisp-edges;
|
image-rendering: crisp-edges;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,9 +84,16 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="columns">
|
<div class="columns container">
|
||||||
<div class="column">
|
<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>
|
||||||
<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>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{% 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>
|
||||||
|
|
@ -9,13 +11,11 @@
|
||||||
<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">
|
<section class="section content">
|
||||||
<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">
|
<section class="section content">
|
||||||
<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>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="content">
|
||||||
<h1 class="has-text-centered">Welcome to Community Backup!</h1>
|
|
||||||
|
|
||||||
<section class="section">
|
<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>
|
<h1 class="has-text-centered">Welcome to Community Backup!</h1>
|
||||||
<p>Currently this service offers backups only via <a href="https://www.borgbackup.org/">Borg Backup</a>.</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>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>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>
|
</section>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="section">
|
<section class="section content">
|
||||||
{{ markdown_content|safe }}
|
{{ markdown_content|safe }}
|
||||||
</section >
|
</section >
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,5 @@ 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"),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,11 @@ 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue