qrcode: move caption before qrcode

This allows reading the qr code description on small screens (like from
the laptop at the infodesk) without scrolling down all the time ;-)
This commit is contained in:
Florian Klink 2019-08-08 21:12:33 +02:00
parent 9dd6b0b23c
commit 807579ec5d

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)
)