Show PDF download button

This commit is contained in:
relikd
2020-11-14 21:41:11 +01:00
parent 3fde15b9e9
commit 07bb189da3
7 changed files with 38 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
{% from "macros/pagination.html" import render_pagination_all %}
{% block title %}{{ localize(this.alt, 'title.recipes') }}{% endblock %}
{% block body %}
<h1>{{ localize(this.alt, 'title.recipes') }}</h1>
<h1>{{ localize(this.alt, 'title.recipes') }} <a href="/static/pdf-{{ this.alt }}.pdf" download="recipes-{{ this.alt }}.pdf" title="{{ localize(this.alt, 'other', 'get_pdf') }}"><img class="h1em" alt="(PDF)" height="20pt" src="{{ '/img/icon-pdf.svg'|url }}"></a></h1>
{{ render_recipe_list(this.pagination.items) }}
{{ render_pagination_all(this.pagination) }}
{% endblock %}