quick fix to prod

This commit is contained in:
juanatsap
2025-11-19 17:27:39 +00:00
parent 709a91c652
commit 1837a9b0ae
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -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)
+5 -5
View File
@@ -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 @@
</div>
<div class="pdf-option-info">
<h3>{{if eq .Lang "es"}}CV Corto{{else}}Short CV{{end}}</h3>
<h3>{{if eq .Lang "es"}}CV Corto (4 páginas){{else}}Short CV (4 pages){{end}}</h3>
<p>{{if eq .Lang "es"}}Información esencial{{else}}Essential info{{end}}</p>
</div>
@@ -90,12 +90,12 @@
</div>
</div>
<!-- Long CV Card -->
<!-- Extended CV Card -->
<div class="pdf-option-card"
data-cv-format="long"
role="radio"
aria-checked="false"
aria-label="{{if eq .Lang "es"}}CV Completo - Versión completa, todos los detalles{{else}}Long CV - Full version, all details{{end}}"
aria-label="{{if eq .Lang "es"}}CV Extendido - 8 páginas, versión completa{{else}}Extended CV - 8 pages, full version{{end}}"
tabindex="0"
_="on click
-- Remove selected from all cards
@@ -148,7 +148,7 @@
</div>
<div class="pdf-option-info">
<h3>{{if eq .Lang "es"}}CV Completo{{else}}Long CV{{end}}</h3>
<h3>{{if eq .Lang "es"}}CV Extendido (8 páginas){{else}}Extended CV (8 pages){{end}}</h3>
<p>{{if eq .Lang "es"}}Todos los detalles{{else}}All details{{end}}</p>
</div>