fix: improve platform homepage pricing UI and restore footer links
- Fix toggle button alignment with consistent min-widths - Add € currency signs to all prices - Show all tier features with greyed unavailable ones - Add multi-channel integration feature for Enterprise tier - Change Contact Sales to mailto link (fixes 404) - Restore footer CMS page links (About, FAQ, Contact) - Add footer link translations for all 4 languages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,10 @@ def get_platform_context(request: Request, db: Session) -> dict:
|
||||
# Get language from request state (set by middleware)
|
||||
language = getattr(request.state, "language", "fr")
|
||||
|
||||
# Get translation function
|
||||
i18n_globals = get_jinja2_globals(language)
|
||||
t = i18n_globals["t"]
|
||||
|
||||
context = {
|
||||
"request": request,
|
||||
"platform_name": "Wizamart",
|
||||
@@ -41,7 +45,14 @@ def get_platform_context(request: Request, db: Session) -> dict:
|
||||
}
|
||||
|
||||
# Add i18n globals (_, t, current_language, SUPPORTED_LANGUAGES, etc.)
|
||||
context.update(get_jinja2_globals(language))
|
||||
context.update(i18n_globals)
|
||||
|
||||
# Add footer CMS pages
|
||||
context["footer_pages"] = [
|
||||
{"slug": "about", "title": t("platform.footer.about")},
|
||||
{"slug": "faq", "title": t("platform.footer.faq")},
|
||||
{"slug": "contact", "title": t("platform.footer.contact_us")},
|
||||
]
|
||||
|
||||
return context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user