From efbba20872c43fe4ed197920489df45659f02115 Mon Sep 17 00:00:00 2001 From: Eneko Illarramendi Date: Tue, 21 Apr 2020 08:18:31 +0200 Subject: [PATCH] style: minor tweaks --- lnbits/core/templates/core/index.html | 6 +++--- lnbits/extensions/tpos/templates/tpos/_tpos.html | 7 ++----- .../withdraw/templates/withdraw/display.html | 4 ++-- lnbits/extensions/withdraw/views_api.py | 2 +- lnbits/static/css/base.css | 8 ++++++-- lnbits/static/scss/base.scss | 5 +++++ lnbits/templates/public.html | 11 +++++++++++ 7 files changed, 30 insertions(+), 13 deletions(-) diff --git a/lnbits/core/templates/core/index.html b/lnbits/core/templates/core/index.html index d0124dc..ad098d1 100644 --- a/lnbits/core/templates/core/index.html +++ b/lnbits/core/templates/core/index.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "public.html" %} {% block scripts %} @@ -9,8 +9,8 @@ {% endblock %} {% block page %} -
-
+
+
diff --git a/lnbits/extensions/tpos/templates/tpos/_tpos.html b/lnbits/extensions/tpos/templates/tpos/_tpos.html index 25efdda..11641c0 100644 --- a/lnbits/extensions/tpos/templates/tpos/_tpos.html +++ b/lnbits/extensions/tpos/templates/tpos/_tpos.html @@ -4,11 +4,8 @@ label="About TPoS"> -

Thiago's Point of Sale, is a secure, mobile-ready, instant and shareable point of sale terminal (PoS) for merchants. The PoS is linked to your LNbits wallet, but completely air-gapped so users can ONLY create invoices. To share the TPoS, hit the hashtag on the terminal -

Created by Tiago Vasconcelos. +

Thiago's Point of Sale is a secure, mobile-ready, instant and shareable point of sale terminal (PoS) for merchants. The PoS is linked to your LNbits wallet but completely air-gapped so users can ONLY create invoices. To share the TPoS hit the hash on the terminal.

+ Created by Tiago Vasconcelos.
- - - diff --git a/lnbits/extensions/withdraw/templates/withdraw/display.html b/lnbits/extensions/withdraw/templates/withdraw/display.html index 0208784..ae0ae63 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/display.html +++ b/lnbits/extensions/withdraw/templates/withdraw/display.html @@ -3,7 +3,7 @@ {% block page %}
-
+
@@ -22,7 +22,7 @@
-
+
LNbits LNURL-withdraw link
diff --git a/lnbits/extensions/withdraw/views_api.py b/lnbits/extensions/withdraw/views_api.py index d1d6a6e..498571f 100644 --- a/lnbits/extensions/withdraw/views_api.py +++ b/lnbits/extensions/withdraw/views_api.py @@ -55,7 +55,7 @@ def api_link_retrieve(link_id): "is_unique": {"type": "boolean", "required": True}, } ) -def api_link_create(link_id=None): +def api_link_create_or_update(link_id=None): if g.data["max_withdrawable"] < g.data["min_withdrawable"]: return jsonify({"message": "`max_withdrawable` needs to be at least `min_withdrawable`."}), Status.BAD_REQUEST diff --git a/lnbits/static/css/base.css b/lnbits/static/css/base.css index 5be09bf..6d1c71d 100644 --- a/lnbits/static/css/base.css +++ b/lnbits/static/css/base.css @@ -39,5 +39,9 @@ .q-table--dense .q-table__bottom { padding-right: 6px !important; } -video { - border-radius: 3px; } +a.inherit { + color: inherit; + text-decoration: none; } + + video { + border-radius: 3px; } diff --git a/lnbits/static/scss/base.scss b/lnbits/static/scss/base.scss index a25bdcc..b33c82e 100644 --- a/lnbits/static/scss/base.scss +++ b/lnbits/static/scss/base.scss @@ -66,6 +66,11 @@ body.body--dark .q-field--error { } } +a.inherit { + color: inherit; + text-decoration: none; +} + // QR video video { diff --git a/lnbits/templates/public.html b/lnbits/templates/public.html index 2bb98ba..98e29aa 100644 --- a/lnbits/templates/public.html +++ b/lnbits/templates/public.html @@ -4,3 +4,14 @@ {% block beta %}{% endblock %} {% block drawer_toggle %}{% endblock %} {% block drawer %}{% endblock %} + + +{% block toolbar_title %} + + {% if SITE_TITLE != 'LNbits' %} + {{ SITE_TITLE }} + {% else %} + LNbits + {% endif %} + +{% endblock %}