read.markets/app/templates
Giorgio Gilestro f4d9c9f2ec settings: extract sync + import widget JS to static files
The two largest inline <script> blocks in settings.html — the cloud
sync modal/management UI (~145 lines) and the import widget wiring
(~245 lines) — moved to app/static/js/settings-sync.js and
settings-import.js respectively, included via <script src="..."
defer> at the bottom of the template.

Where the inline code referenced Jinja vars or {% if %} guards,
those values are now passed via data-* attributes on the relevant
DOM elements (or via window.cassandra* config objects for structured
data) and read in the static JS.

Smaller blocks (Stripe portal, digest prefs, language select,
invite copy) stay inline — each <40 lines and easier to follow
next to their markup. settings.html drops from 758 lines to roughly
half that.
2026-05-27 20:55:49 +02:00
..
partials news: clamp free + anonymous to last 6h; paid keeps 24h 2026-05-25 22:49:21 +02:00
about.html public: landing + pricing + legal pages, apex-ready, lawyer-reviewed 2026-05-24 00:08:02 +02:00
base.html ui: name the theme-toggle handler instead of an inline IIFE 2026-05-27 20:41:31 +02:00
dashboard.html portfolio-edit: add a quiet how-to hint inside the composer 2026-05-27 15:27:44 +02:00
disclaimer.html pricing: land £7/£70 paid tier and make behaviour match 2026-05-26 11:34:37 +02:00
landing.html cleanup: drop dead upload.html + soften broker-only marketing copy 2026-05-27 15:39:03 +02:00
log.html pricing: land £7/£70 paid tier and make behaviour match 2026-05-26 11:34:37 +02:00
login.html public: landing + pricing + legal pages, apex-ready, lawyer-reviewed 2026-05-24 00:08:02 +02:00
news.html brand: rename product to "Read the Markets" (read.markets) 2026-05-22 19:39:38 +01:00
pricing.html cleanup: drop dead upload.html + soften broker-only marketing copy 2026-05-27 15:39:03 +02:00
privacy.html public: landing + pricing + legal pages, apex-ready, lawyer-reviewed 2026-05-24 00:08:02 +02:00
public_base.html public: landing + pricing + legal pages, apex-ready, lawyer-reviewed 2026-05-24 00:08:02 +02:00
settings.html settings: extract sync + import widget JS to static files 2026-05-27 20:55:49 +02:00
terms.html stripe: per-cadence cooling-off + manage-subscription button 2026-05-26 20:06:19 +02:00
verify.html ui: collapsible settings sections + welcome-email + larger auth inputs 2026-05-26 22:32:59 +02:00