Improved customisable homepage and added badge (#2474)

* Improved customisable homepage and added badge

* Added filled to styling of drop down

* format

* Wrong model

* lint hack

* Update .env.example

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>

* reverted

* Spelling

* More explicit

* format

* Added if for badge

* spellling

* Fix for None

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
Arc
2024-04-30 08:08:57 +01:00
committed by GitHub
co-authored by Vlad Stan
parent c04c13b2f8
commit c3d37a460c
7 changed files with 80 additions and 24 deletions
+4 -13
View File
@@ -63,27 +63,23 @@
<q-badge
v-text="$t('voidwallet_active')"
color="red"
text-color="black"
class="q-mr-md gt-md"
>
</q-badge>
{%endif%}
<q-badge
v-if="'{{LNBITS_CUSTOM_BADGE}}' && '{{LNBITS_CUSTOM_BADGE}}' != 'None'"
v-show="$q.screen.gt.sm"
color="yellow"
text-color="black"
color="{{ LNBITS_CUSTOM_BADGE_COLOR }}"
class="q-mr-md"
label="{{LNBITS_CUSTOM_BADGE}}"
>
<span
v-text='$t("use_with_caution", { name: "{{ SITE_TITLE }}" })'
></span>
</q-badge>
{% if LNBITS_SERVICE_FEE > 0 %}
<q-badge
v-show="$q.screen.gt.sm"
v-if="g.user"
color="green"
text-color="black"
class="q-mr-md"
>
{% if LNBITS_SERVICE_FEE_MAX > 0 %}
@@ -101,12 +97,7 @@
</q-badge>
{%endif%} {% endblock %}
<q-badge
v-if="g.offline"
color="red"
text-color="white"
class="q-mr-md"
>
<q-badge v-if="g.offline" color="red" class="q-mr-md">
<span>OFFLINE</span>
</q-badge>