mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
DRY footer for 2FA pages
This commit is contained in:
parent
f3768c3d92
commit
cffbf82ddb
3 changed files with 52 additions and 99 deletions
49
bookwyrm/templates/snippets/2fa_footer.html
Normal file
49
bookwyrm/templates/snippets/2fa_footer.html
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column is-one-fifth">
|
||||||
|
<p>
|
||||||
|
<a href="{% url 'about' %}">{% blocktrans with site_name=site.name %}About {{ site_name }}{% endblocktrans %}</a>
|
||||||
|
</p>
|
||||||
|
{% if site.admin_email %}
|
||||||
|
<p>
|
||||||
|
<a href="mailto:{{ site.admin_email }}">{% trans "Contact site admin" %}</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
<p>
|
||||||
|
<a href="https://docs.joinbookwyrm.com/">{% trans "Documentation" %}</a>
|
||||||
|
</p>
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
<p id="tour-begin">
|
||||||
|
<a href="/guided-tour/True">{% trans "Guided Tour" %}</a>
|
||||||
|
<noscript>(requires JavaScript)</noscript>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="column content is-two-fifth">
|
||||||
|
{% if site.support_link %}
|
||||||
|
<p>
|
||||||
|
<span class="icon icon-heart"></span>
|
||||||
|
{% blocktrans trimmed with site_name=site.name support_link=site.support_link support_title=site.support_title %}
|
||||||
|
Support {{ site_name }} on
|
||||||
|
<a href="{{ support_link }}" target="_blank" rel="nofollow noopener noreferrer">{{ support_title }}</a>
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
BookWyrm's source code is freely available. You can contribute or report issues on
|
||||||
|
<a href="https://github.com/bookwyrm-social/bookwyrm" target="_blank" rel="nofollow noopener noreferrer">GitHub</a>.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{% if site.footer_item %}
|
||||||
|
<div class="column">
|
||||||
|
<p>{{ site.footer_item|safe }}</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
|
@ -44,54 +44,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO: make this a snippet that is included -->
|
{% include 'snippets/2fa_footer.html' %}
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-one-fifth">
|
|
||||||
<p>
|
|
||||||
<a href="{% url 'about' %}">{% blocktrans with site_name=site.name %}About {{ site_name }}{% endblocktrans %}</a>
|
|
||||||
</p>
|
|
||||||
{% if site.admin_email %}
|
|
||||||
<p>
|
|
||||||
<a href="mailto:{{ site.admin_email }}">{% trans "Contact site admin" %}</a>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
<a href="https://docs.joinbookwyrm.com/">{% trans "Documentation" %}</a>
|
|
||||||
</p>
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<p id="tour-begin">
|
|
||||||
<a href="/guided-tour/True">{% trans "Guided Tour" %}</a>
|
|
||||||
<noscript>(requires JavaScript)</noscript>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="column content is-two-fifth">
|
|
||||||
{% if site.support_link %}
|
|
||||||
<p>
|
|
||||||
<span class="icon icon-heart"></span>
|
|
||||||
{% blocktrans trimmed with site_name=site.name support_link=site.support_link support_title=site.support_title %}
|
|
||||||
Support {{ site_name }} on
|
|
||||||
<a href="{{ support_link }}" target="_blank" rel="nofollow noopener noreferrer">{{ support_title }}</a>
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
BookWyrm's source code is freely available. You can contribute or report issues on
|
|
||||||
<a href="https://github.com/bookwyrm-social/bookwyrm" target="_blank" rel="nofollow noopener noreferrer">GitHub</a>.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% if site.footer_item %}
|
|
||||||
<div class="column">
|
|
||||||
<p>{{ site.footer_item|safe }}</p>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns is-multiline is-centered hero is-fullheight is-vcentered">
|
<div class="columns is-multiline is-centered hero is-halfheight is-vcentered">
|
||||||
<div class="column is-one-third m-4">
|
<div class="column is-one-third m-4">
|
||||||
<header class="block">
|
<header class="block">
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
@ -40,54 +40,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO: make this a snippet that is included -->
|
{% include 'snippets/2fa_footer.html' %}
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column is-one-fifth">
|
|
||||||
<p>
|
|
||||||
<a href="{% url 'about' %}">{% blocktrans with site_name=site.name %}About {{ site_name }}{% endblocktrans %}</a>
|
|
||||||
</p>
|
|
||||||
{% if site.admin_email %}
|
|
||||||
<p>
|
|
||||||
<a href="mailto:{{ site.admin_email }}">{% trans "Contact site admin" %}</a>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
<a href="https://docs.joinbookwyrm.com/">{% trans "Documentation" %}</a>
|
|
||||||
</p>
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<p id="tour-begin">
|
|
||||||
<a href="/guided-tour/True">{% trans "Guided Tour" %}</a>
|
|
||||||
<noscript>(requires JavaScript)</noscript>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="column content is-two-fifth">
|
|
||||||
{% if site.support_link %}
|
|
||||||
<p>
|
|
||||||
<span class="icon icon-heart"></span>
|
|
||||||
{% blocktrans trimmed with site_name=site.name support_link=site.support_link support_title=site.support_title %}
|
|
||||||
Support {{ site_name }} on
|
|
||||||
<a href="{{ support_link }}" target="_blank" rel="nofollow noopener noreferrer">{{ support_title }}</a>
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
BookWyrm's source code is freely available. You can contribute or report issues on
|
|
||||||
<a href="https://github.com/bookwyrm-social/bookwyrm" target="_blank" rel="nofollow noopener noreferrer">GitHub</a>.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% if site.footer_item %}
|
|
||||||
<div class="column">
|
|
||||||
<p>{{ site.footer_item|safe }}</p>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue