alter injection of tpos to match

This commit is contained in:
Lee Salminen 2022-07-05 15:08:57 -06:00
parent 2cb87d96f2
commit ebeb3d213b
3 changed files with 7 additions and 3 deletions

View file

@ -145,7 +145,7 @@ async def wallet(
"user": user.dict(), "user": user.dict(),
"wallet": wallet.dict(), "wallet": wallet.dict(),
"service_fee": service_fee, "service_fee": service_fee,
"web_manifest": f"/manifest/{user.id}.webmanifest" "web_manifest": f"/manifest/{user.id}.webmanifest",
}, },
) )

View file

@ -1,4 +1,3 @@
<link rel="manifest" href="/tpos/manifest/{{ tpos.id }}.webmanifest" />
{% extends "public.html" %} {% extends "public.html" %}
{% block toolbar_title %} {% block toolbar_title %}
{{ tpos.name }} {{ tpos.name }}

View file

@ -35,7 +35,12 @@ async def tpos(request: Request, tpos_id):
) )
return tpos_renderer().TemplateResponse( return tpos_renderer().TemplateResponse(
"tpos/tpos.html", {"request": request, "tpos": tpos} "tpos/tpos.html",
{
"request": request,
"tpos": tpos,
"web_manifest": f"/tpos/manifest/{tpos_id}.webmanifest",
},
) )