Files
libredesk/static/public/web-templates/index.html
Abhinav Raut a516773b14 feat: add i18n support to web templates
- Add i18n object to template funcMap for direct access
  - Translate all hardcoded strings in CSAT and footer templates
  - Add reusable translation keys to globals.messages
2025-08-30 19:35:00 +05:30

38 lines
1.0 KiB
HTML

{{ define "header" }}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{ .Data.Title }} - {{ SiteName }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<link href="/static/public/static/style.css" rel="stylesheet" type="text/css" />
{{ if ne FaviconURL "" }}
<link rel="icon" href="{{ FaviconURL }}" type="image/x-icon" />
{{ else }}
<link rel="icon" href="/public/static/favicon.png" type="image/png" />
{{ end }}
</head>
<body>
<div class="container wrap">
<header class="header">
<div class="logo">
{{ if ne LogoURL "" }}
<img src="{{ LogoURL }}" alt="{{ SiteName }}" />
{{ else }}
<img src="/public/static/logo.svg" alt="{{ SiteName }}" />
{{ end }}
</a>
</div>
</header>
{{ end }}
{{ define "footer" }}
</div>
<footer class="container">
{{ i18n.T "globals.messages.poweredBy" }} <a target="_blank" rel="noreferrer" href="https://libredesk.io/">Libredesk</a>
</footer>
</body>
</html>
{{ end }}