Some checks failed
Build and Release / Create Release (push) Successful in 1s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m21s
Build and Release / Lint (push) Failing after 8m46s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been skipped
Build and Release / Unit Tests (push) Successful in 8m49s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been skipped
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been skipped
Build and Release / Build Binary (linux/arm64) (push) Has been skipped
Add "Translate All (AI)" button to pages language settings that translates all configured languages in one operation. Shows success/partial success messages with counts. Adds locale keys for all 29 languages. Also removes trailing newlines from locale files for consistency.
40 lines
2.1 KiB
Handlebars
40 lines
2.1 KiB
Handlebars
<header class="pages-header">
|
|
<div class="container">
|
|
<nav class="pages-nav">
|
|
<a href="{{.LandingURL}}" class="pages-nav-brand">
|
|
{{if .Config.Branding.Logo}}
|
|
<img src="{{.Config.Branding.Logo}}" alt="{{.Repository.Name}}" class="pages-nav-logo">
|
|
{{else}}
|
|
<span class="pages-nav-title">{{.Repository.Name}}</span>
|
|
{{end}}
|
|
</a>
|
|
<div class="pages-nav-links">
|
|
{{range .Config.Footer.Links}}
|
|
<a href="{{.URL}}" class="pages-nav-link">{{.Label}}</a>
|
|
{{end}}
|
|
{{if .Config.Navigation.ShowDocs}}<a href="{{AppSubUrl}}/{{.Repository.FullName}}/wiki" class="pages-nav-link">{{if .Config.Navigation.LabelDocs}}{{.Config.Navigation.LabelDocs}}{{else}}Docs{{end}}</a>{{end}}
|
|
{{if .Config.Navigation.ShowAPI}}<a href="{{AppSubUrl}}/{{.Repository.FullName}}/swagger" class="pages-nav-link">{{if .Config.Navigation.LabelAPI}}{{.Config.Navigation.LabelAPI}}{{else}}API{{end}}</a>{{end}}
|
|
{{if .Config.Navigation.ShowReleases}}<a href="{{AppSubUrl}}/{{.Repository.FullName}}/releases" class="pages-nav-link">{{if .Config.Navigation.LabelReleases}}{{.Config.Navigation.LabelReleases}}{{else}}Releases{{end}}</a>{{end}}
|
|
{{if .Config.Navigation.ShowIssues}}<a href="{{AppSubUrl}}/{{.Repository.FullName}}/issues" class="pages-nav-link">{{if .Config.Navigation.LabelIssues}}{{.Config.Navigation.LabelIssues}}{{else}}Issues{{end}}</a>{{end}}
|
|
{{if .Config.Navigation.ShowRepository}}
|
|
<a href="{{AppSubUrl}}/{{.Repository.FullName}}" class="ui mini button" target="_blank">
|
|
<img src="/assets/img/gitcaddy-icon.svg" width="16" height="16" alt="GitCaddy"> View Source
|
|
</a>
|
|
{{end}}
|
|
{{if .LangSwitcherEnabled}}
|
|
<div class="pages-lang-switcher">
|
|
<button class="pages-lang-btn" onclick="this.nextElementSibling.classList.toggle('open')">
|
|
{{svg "octicon-globe" 14}} {{index $.LanguageNames .ActiveLang}}
|
|
</button>
|
|
<div class="pages-lang-dropdown">
|
|
{{range .AvailableLanguages}}
|
|
<a href="?lang={{.}}" class="pages-lang-option{{if eq . $.ActiveLang}} active{{end}}">{{index $.LanguageNames .}}</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
</header>
|