From 1837a9b0aeec20126af0916da8833223c19c7c41 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Wed, 19 Nov 2025 17:27:39 +0000 Subject: [PATCH] quick fix to prod --- internal/handlers/cv.go | 10 +++++----- templates/partials/modals/pdf-modal.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/handlers/cv.go b/internal/handlers/cv.go index 91df80a..ae66073 100644 --- a/internal/handlers/cv.go +++ b/internal/handlers/cv.go @@ -220,10 +220,10 @@ func (h *CVHandler) ExportPDF(w http.ResponseWriter, r *http.Request) { length := r.URL.Query().Get("length") if length == "" { - length = "detailed" + length = "short" } - if length != "detailed" && length != "extended" { - HandleError(w, r, BadRequestError("Unsupported length. Use 'detailed' or 'extended'")) + if length != "short" && length != "extended" { + HandleError(w, r, BadRequestError("Unsupported length. Use 'short' or 'extended'")) return } @@ -288,8 +288,8 @@ func (h *CVHandler) ExportPDF(w http.ResponseWriter, r *http.Request) { // Format: cv-{length}[-{version}]-{initials}-{year}-{lang}.pdf // Note: {version} is OMITTED when it's "clean" // Examples: - // - cv-detailed-jamr-2025-es.pdf (clean version, no skills) - // - cv-detailed-with_skills-jamr-2025-es.pdf (with skills sidebar) + // - cv-short-jamr-2025-es.pdf (clean version, no skills) + // - cv-short-with_skills-jamr-2025-es.pdf (with skills sidebar) // - cv-extended-jamr-2025-en.pdf (clean version, no skills) // - cv-extended-with_skills-jamr-2025-en.pdf (with skills sidebar) diff --git a/templates/partials/modals/pdf-modal.html b/templates/partials/modals/pdf-modal.html index 9183772..ea25817 100644 --- a/templates/partials/modals/pdf-modal.html +++ b/templates/partials/modals/pdf-modal.html @@ -30,7 +30,7 @@ data-cv-format="short" role="radio" aria-checked="false" - aria-label="{{if eq .Lang "es"}}CV Corto - Una página, información esencial{{else}}Short CV - One page, essential information{{end}}" + aria-label="{{if eq .Lang "es"}}CV Corto - 4 páginas, información esencial{{else}}Short CV - 4 pages, essential information{{end}}" tabindex="0" _="on click -- Remove selected from all cards @@ -81,7 +81,7 @@
-

{{if eq .Lang "es"}}CV Corto{{else}}Short CV{{end}}

+

{{if eq .Lang "es"}}CV Corto (4 páginas){{else}}Short CV (4 pages){{end}}

{{if eq .Lang "es"}}Información esencial{{else}}Essential info{{end}}

@@ -90,12 +90,12 @@ - +