mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-02 04:53:41 +00:00
- 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
38 lines
1.0 KiB
HTML
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 }} |