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:
parent
9dd6b0b23c
commit
807579ec5d
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue