attach lnurl to view
This commit is contained in:
parent
a4255e1594
commit
390ee227ec
2 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
||||||
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
|
||||||
<qrcode
|
<qrcode
|
||||||
style="width: 20%; z-index: 9999"
|
style="width: 20%; z-index: 9999"
|
||||||
:value="{{copilot.lnurl}}"
|
:value="{{ lnurl }}"
|
||||||
class="rounded-borders fixed-top-right"
|
class="rounded-borders fixed-top-right"
|
||||||
></qrcode>
|
></qrcode>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
|
||||||
|
|
@ -47,4 +47,5 @@ async def panel(copilot_id):
|
||||||
copilot = await get_copilot(copilot_id) or abort(
|
copilot = await get_copilot(copilot_id) or abort(
|
||||||
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
|
||||||
)
|
)
|
||||||
return await render_template("copilot/panel.html", copilot=copilot)
|
print(copilot.lnurl)
|
||||||
|
return await render_template("copilot/panel.html", copilot=copilot, lnurl=copilot.lnurl)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue