9636b3659f
- Move all bilingual text from templates to UI JSON (labels, buttons, modals) - Move skills summary paragraph to CV JSON with HTML support - Add new UI sections: navigation, viewControls, sections, footer, portfolio, pdfModal, shortcutsModal, infoModal, widgets - Update Go structs to match expanded JSON structure - Add template.HTML type for CV.SkillsSummary field - Add JSON content validation test (70-json-content-validation.test.mjs) Templates now contain only structural logic (CSS classes, HTML attributes) while all user-visible text loads from JSON files for proper i18n support.
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{{define "action-buttons"}}
|
|
<!-- Right: Action buttons -->
|
|
<div class="action-buttons-right">
|
|
<button
|
|
id="action-bar-pdf-btn"
|
|
class="action-btn pdf-btn has-tooltip"
|
|
onclick="document.getElementById('pdf-modal').showModal()"
|
|
aria-label="{{.UI.Widgets.ActionButtons.DownloadPdf}}"
|
|
data-tooltip="{{.UI.Widgets.ActionButtons.DownloadPdf}}"
|
|
_="on mouseenter call syncPdfHover(true)
|
|
on mouseleave call syncPdfHover(false)">
|
|
<iconify-icon icon="catppuccin:pdf" width="24" height="24"></iconify-icon>
|
|
{{.UI.Widgets.ActionButtons.DownloadPdf}}
|
|
</button>
|
|
<button
|
|
class="action-btn print-btn action-bar-print-btn has-tooltip"
|
|
aria-label="{{.UI.Widgets.ActionButtons.PrintFriendly}}"
|
|
data-tooltip="{{.UI.Widgets.ActionButtons.PrintFriendly}}"
|
|
_="on click call printFriendly()
|
|
on mouseenter call syncPrintHover(true)
|
|
on mouseleave call syncPrintHover(false)">
|
|
<iconify-icon icon="mdi:leaf" width="24" height="24"></iconify-icon>
|
|
{{.UI.Widgets.ActionButtons.PrintFriendly}}
|
|
</button>
|
|
</div>
|
|
{{end}}
|