Merge pull request #379 from flokli/qrcode-caption

qrcode: move caption before qrcode
This commit is contained in:
Víðir Valberg Guðmundsson 2019-08-09 10:20:02 +02:00 committed by GitHub
commit 6f55bda732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ def qr_code(value):
return mark_safe(
"<figure style='text-align: center;'>"
'<img src="data:image/png;base64,{}" alt="">'
"<figcaption style='text-align: center;'>{}</figcaption>"
'<img src="data:image/png;base64,{}" alt="">'
"</figure>".format(data.decode(), value)
)