[#191] Add customization to add footer-links (#192)

This commit is contained in:
Knut Ahlers 2024-09-22 12:55:11 +02:00 committed by GitHub
parent 73209fc52c
commit 48bf8c9ca4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 4 deletions

View file

@ -40,6 +40,13 @@ type (
MetricsAllowedSubnets []string `json:"-" yaml:"metricsAllowedSubnets"`
OverlayFSPath string `json:"-" yaml:"overlayFSPath"`
UseFormalLanguage bool `json:"-" yaml:"useFormalLanguage"`
FooterLinks []FooterLink `json:"footerLinks,omitempty" yaml:"footerLinks"`
}
FooterLink struct {
Name string `json:"name" yaml:"name"`
URL string `json:"url" yaml:"url"`
}
)

View file

@ -24,13 +24,24 @@
</div>
<div
v-if="!$root.customize.disablePoweredBy"
class="row mt-4"
>
<div class="col form-text text-center">
{{ $t('text-powered-by') }}
<a href="https://github.com/Luzifer/ots"><i class="fab fa-github" /> OTS</a>
{{ $root.version }}
<span
v-if="!$root.customize.disablePoweredBy"
class="mx-2"
>
{{ $t('text-powered-by') }}
<a href="https://github.com/Luzifer/ots"><i class="fab fa-github" /> OTS</a>
{{ $root.version }}
</span>
<span
v-for="link in $root.customize.footerLinks"
:key="link.url"
class="mx-2"
>
<a :href="link.url">{{ link.name }}</a>
</span>
</div>
</div>
</div>