diff --git a/lnbits/extensions/cashu/templates/cashu/_api_docs.html b/lnbits/extensions/cashu/templates/cashu/_api_docs.html index 27ce55f98..f7bb19f60 100644 --- a/lnbits/extensions/cashu/templates/cashu/_api_docs.html +++ b/lnbits/extensions/cashu/templates/cashu/_api_docs.html @@ -5,7 +5,7 @@ :content-inset-level="0.5" > - + diff --git a/lnbits/extensions/cashu/templates/cashu/mint.html b/lnbits/extensions/cashu/templates/cashu/mint.html index 3c0998b52..4f83f103b 100644 --- a/lnbits/extensions/cashu/templates/cashu/mint.html +++ b/lnbits/extensions/cashu/templates/cashu/mint.html @@ -10,12 +10,41 @@ style="font-size: 10rem" >

{{ mint_name }}

-
+

Cashu mint

+ Open wallet -
- Some data about mint here:
* whether its online
* Who to - contact for support
* etc... -
+
+
+
+

Read the following text carefully!

+

+ This is a + Cashu + mint. Cashu is a Ecash system on Bitcoin. +

+

+ Add to home screen.
+ You can add Cashu to your home screen as a progressive web app + (PWA). When you open the wallet in your browser, on Android Chrome, + click the menu at the upper right. On iOS Safari, click the share + button. Now press the Add to Home screen button. +

+

+ Backup your wallet!
+ Ecash is a bearer asset, meaning losing access to your wallet will + mean you will lose the funds. The wallet stores ecash tokens on your + device's database. If you lose the link or delete your your data + without backing up, you will lose your tokens. Press the Backup + button in the wallet to download a copy of your tokens. +

+
diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index 99073ea05..7ad093436 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -538,7 +538,7 @@ Add to home screen. You can add Cashu to your home screen as a progressive web app (PWA). On Android Chrome, click the hamburger menu at the upper right. - On iOS Safari, click the share button. + On iOS Safari, click the share button. Now press the Add to Home screen button.

This service is in BETA! We hold no responsibility for people losing diff --git a/lnbits/extensions/cashu/views.py b/lnbits/extensions/cashu/views.py index 26b1f8708..954936b93 100644 --- a/lnbits/extensions/cashu/views.py +++ b/lnbits/extensions/cashu/views.py @@ -43,7 +43,8 @@ async def wallet(request: Request, mint_id: str): async def cashu(request: Request, mintID): cashu = await get_cashu(mintID) return cashu_renderer().TemplateResponse( - "cashu/mint.html", {"request": request, "mint_name": cashu.name} + "cashu/mint.html", + {"request": request, "mint_name": cashu.name, "mint_id": mintID}, ) @@ -57,7 +58,7 @@ async def manifest(cashu_id: str): return { "short_name": "Cashu", - "name": cashu.name + " - " + "Cashu", + "name": "Cashu" + " - " + cashu.name, "icons": [ { "src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png", @@ -78,9 +79,9 @@ async def manifest(cashu_id: str): "theme_color": "#1F2234", "shortcuts": [ { - "name": cashu.name + " - " + "Cashu", - "short_name": cashu.name, - "description": cashu.name + " - " + "Cashu", + "name": "Cashu" + " - " + cashu.name, + "short_name": "Cashu", + "description": "Cashu" + " - " + cashu.name, "url": "/cashu/wallet?mint_id=" + cashu_id, "icons": [ {