Add PNG download of QR-Code

This commit is contained in:
2021-02-07 17:49:13 +01:00
parent b7f7c429de
commit 325cdfc9d4
5 changed files with 270 additions and 19 deletions
+7 -2
View File
@@ -1,7 +1,7 @@
{% extends "admin.html" %}
{% block admin %}
<h1>The Link {{ link.code }}</h1>
<h1>{{ link.title }}</h1>
<table>
<tr>
<td>Beschreibung:</td>
@@ -21,7 +21,12 @@
</tr>
<tr>
<td>QR-Code</td>
<td>{{ qr | safe }}</td>
<td><a href="/admin/download/png/{{ link.code }}" download="{{ link.title | slugify }}.png">
{{ qr | trim_start_matches(pat=
'.*?>')
| safe }}
</a>
</td>
</tr>
<tr>
<td></td>