feat: footer text override option
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<template lang="pug">
|
||||
v-footer.justify-center(:color='bgColor', inset)
|
||||
.caption.grey--text(:class='$vuetify.theme.dark ? `text--lighten-1` : `text--darken-1`')
|
||||
template(v-if='company && company.length > 0 && contentLicense !== ``')
|
||||
template(v-if='footerOverride')
|
||||
span {{footerOverride}} |
|
||||
template(v-else-if='company && company.length > 0 && contentLicense !== ``')
|
||||
span(v-if='contentLicense === `alr`') {{ $t('common:footer.copyright', { company: company, year: currentYear, interpolation: { escapeValue: false } }) }} |
|
||||
span(v-else) {{ $t('common:footer.license', { company: company, license: $t('common:license.' + contentLicense), interpolation: { escapeValue: false } }) }} |
|
||||
span {{ $t('common:footer.poweredBy') }} #[a(href='https://wiki.js.org', ref='nofollow') Wiki.js]
|
||||
@@ -29,6 +31,7 @@ export default {
|
||||
computed: {
|
||||
company: get('site/company'),
|
||||
contentLicense: get('site/contentLicense'),
|
||||
footerOverride: get('site/footerOverride'),
|
||||
bgColor() {
|
||||
if (!this.$vuetify.theme.dark) {
|
||||
return this.color
|
||||
|
Reference in New Issue
Block a user