feat(landing): pagini publice Termeni/GDPR/Documentatie API + fix link-uri moarte
Antet/footer/stil extrase in include-uri comune (_lp_*.html) folosite de landing si de shell-ul paginilor statice (landing_static.html). Butoanele 'Vezi cum functioneaza' si 'Vezi documentatia API' devin link-uri reale; footer-ul si consimtamantul de la inregistrare leaga paginile noi; Contact indica spre romfast.ro/menu/contact.html. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -791,12 +791,17 @@ def test_login_branded_nu_schelet(client):
|
||||
# ============================================================
|
||||
|
||||
def _citeste_landing() -> str:
|
||||
"""Returneaza continutul landing.html (template static; variabilele Jinja2 nu
|
||||
"""Returneaza landing.html + partial-urile comune (antet/footer/stil sunt
|
||||
include-uri partajate cu paginile statice publice; variabilele Jinja2 nu
|
||||
afecteaza copy-ul de limita/plan/buton verificat mai jos)."""
|
||||
from pathlib import Path
|
||||
p = Path(__file__).parent.parent / "app" / "web" / "templates" / "landing.html"
|
||||
assert p.exists(), f"landing.html negasit la {p}"
|
||||
return p.read_text(encoding="utf-8")
|
||||
tdir = Path(__file__).parent.parent / "app" / "web" / "templates"
|
||||
parts = []
|
||||
for nume in ("landing.html", "_lp_header.html", "_lp_footer.html", "_lp_style.html"):
|
||||
p = tdir / nume
|
||||
assert p.exists(), f"{nume} negasit la {p}"
|
||||
parts.append(p.read_text(encoding="utf-8"))
|
||||
return "\n".join(parts)
|
||||
|
||||
|
||||
def test_landing_limita_60():
|
||||
|
||||
Reference in New Issue
Block a user