Uses the same snippet for the footer across different templates

This commit is contained in:
Mouse Reeve 2022-11-14 18:18:27 -08:00
parent a91d9f67be
commit dbe74f6388
4 changed files with 3 additions and 49 deletions

View file

@ -192,53 +192,7 @@
<p id="status-error-message" class="live-message notification is-danger p-3 pr-5 pl-5 is-hidden">{% trans "Error posting status" %}</p> <p id="status-error-message" class="live-message notification is-danger p-3 pr-5 pl-5 is-hidden">{% trans "Error posting status" %}</p>
</div> </div>
<footer class="footer"> {% include 'snippets/footer.html' %}
<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>
{% endblock %} {% endblock %}
<script> <script>

View file

@ -44,6 +44,6 @@
</div> </div>
</div> </div>
</div> </div>
{% include 'snippets/2fa_footer.html' %} {% include 'snippets/footer.html' %}
</body> </body>
</html> </html>

View file

@ -40,6 +40,6 @@
</div> </div>
</div> </div>
</div> </div>
{% include 'snippets/2fa_footer.html' %} {% include 'snippets/footer.html' %}
</body> </body>
</html> </html>