diff --git a/app/templates/base.html b/app/templates/base.html index d972043..fbf52e0 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -158,12 +158,14 @@ body: JSON.stringify({lang: newLang}), }); if (!r.ok) throw new Error('HTTP ' + r.status); - // Reload localized panels so the user immediately sees content - // in the new language (strategic log, dashboard header, etc.). - if (window.location.pathname === '/log' || - window.location.pathname.startsWith('/log/')) { - window.location.reload(); - } + // Trigger HTMX-driven panels to re-fetch in the new language. + // Same shape as cassandraSetTone — every panel that listens to + // tone-changed also listens to lang-changed. + ['#dash-header-container', '#log-panel .panel-body', + '#indicators-body', '#log-content'].forEach(function (sel) { + var el = document.querySelector(sel); + if (el && window.htmx) window.htmx.trigger(el, 'lang-changed'); + }); } catch (e) { pill.dataset.lang = prev; console.warn('language switch failed:', e); diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index fda7358..ee7e7df 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -5,7 +5,7 @@
- If and when paid plans become available, you will be told the - applicable fees at point of sale. Paid features remain active for as - long as the subscription is current or any time-bounded credit - granted to your account is still valid. You can cancel a paid - subscription at any time; cancellation takes effect at the end of - the current billing period unless otherwise stated. -
-- Where the law gives you a 14-day right to cancel a subscription - (Consumer Contracts (Information, Cancellation and Additional - Charges) Regulations 2013, UK), that right applies. By starting to - use a paid feature immediately on purchase you agree we may begin - supplying the service within the cancellation period, and you - acknowledge that you lose the right to cancel in respect of any - digital content already delivered. + Paid plans are available at £7/month or £70/year (terms + and current prices on the pricing page). New + annual subscriptions begin with a 14-day free trial; monthly + subscriptions begin immediately on payment. Paid features remain + active for as long as the subscription is current or any + time-bounded credit granted to your account is still valid. You + can cancel a paid subscription at any time; cancellation takes + effect at the end of the current billing period unless otherwise + stated. Detailed refund and cancellation rights are set out in + section 6 below.