thiswebshoprules

git clone https://git.tarina.org/thiswebshoprules
Log | Files | Refs

commit e93056364836da1d22d27b0e5ddbdedb5e290611
parent 235f0b60c217597c0e4fe328b28ac2d237e5d984
Author: rob <rob@tarina.org>
Date:   Tue,  5 Mar 2024 13:34:14 +0200

ready set go

Diffstat:
Mpublic_html/static/robstyle.css | 2+-
Mpublic_html/templates/almost.html | 9+++++----
Mpublic_html/templates/base.html | 4++--
Mpublic_html/templates/checkout.html | 4++--
Mpublic_html/templates/index.html | 8+++++---
Mserver.py | 4++--
6 files changed, 17 insertions(+), 14 deletions(-)

diff --git a/public_html/static/robstyle.css b/public_html/static/robstyle.css @@ -41,7 +41,7 @@ body font-family: 'Latin-Mono-Regular', sans-serif; font-weight: normal; color: #f4f4f4; - font-size: 10pt; + font-size: 11pt; } a diff --git a/public_html/templates/almost.html b/public_html/templates/almost.html @@ -13,16 +13,17 @@ $if sessionkey != 'empty': p_totsats=i.quantity*price[0] p_toteuro=i.quantity*price[1] $i.quantity x $productname(i.product) - $p_totsats $p_toteuro&euro; <a href="/dropitem/$i.product">remove</a><br> + $#$p_totsats $p_toteuro&euro; <a href="/dropitem/$i.product">remove</a> + <a href="/dropitem/$i.product">remove</a> + <br> $code: totsats += p_totsats toteuro += p_toteuro $if totsats > 0: total: $totsats Satoshi or $toteuro &euro; <br> - <a href="/checkout">CHECKOUT --></a> - <br> - <code>~*~</code> + <h5><a href="/checkout">Checkout 🛒 --></a></h5> + <code>~</code> </div> </div> diff --git a/public_html/templates/base.html b/public_html/templates/base.html @@ -9,7 +9,7 @@ $def with (content) </HEAD> <BODY> - +<br> $:content - +<br> </BODY> diff --git a/public_html/templates/checkout.html b/public_html/templates/checkout.html @@ -3,7 +3,7 @@ $ totsats = 0 $ toteuro = 0 <div id="container"> <div id="default"> -<a href="/">go back</a> +<a href="javascript:history.back()">go back</a> <br> <h2>Checkout</h2> in your order:<br> @@ -34,7 +34,7 @@ Order is only reserved once paid. $:checkoutform.render() </form> </div> -<a href="/"><<<<<< back shoppin for more!!</a> +<a href="javascript:history.back()"><<<<<< back shoppin for more!!</a> </div> </div> </div> diff --git a/public_html/templates/index.html b/public_html/templates/index.html @@ -13,15 +13,16 @@ $if sessionkey != 'empty': p_totsats=i.quantity*price[0] p_toteuro=i.quantity*price[1] $i.quantity x $productname(i.product) - $p_totsats $p_toteuro&euro; <a href="/dropitem/$i.product">remove</a><br> + $#$p_totsats $p_toteuro&euro; <a href="/dropitem/$i.product">remove</a> + <a href="/dropitem/$i.product">remove</a> + <br> $code: totsats += p_totsats toteuro += p_toteuro $if totsats > 0: total: $totsats Satoshi or $toteuro &euro; <br> - <a href="/checkout">CHECKOUT --></a> - <br> + <h5><a href="/checkout">Checkout 🛒 --></a></h5> <code>~</code> </div> </div> @@ -63,6 +64,7 @@ $for i in products: $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png': <a href="/bigpic/$g.id"><img class="imgprod" src="/static/img/thumb/$g.soundname"></a> <br> + <br> $code: sat, euro = getprice(i.id) diff --git a/server.py b/server.py @@ -23,8 +23,8 @@ from forex_python.bitcoin import BtcConverter from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException urls = ( - '/?', 'index', - '/almost?', 'almost', + '/shop?', 'index', + '/?', 'almost', '/putinbag/(.*)', 'putinbag', '/dropitem/(.*)?', 'dropitem', '/payln/(.*)', 'payln',