diff --git a/client/components/main/layouts.jade b/client/components/main/layouts.jade index 5e79973b1..3c87104f4 100644 --- a/client/components/main/layouts.jade +++ b/client/components/main/layouts.jade @@ -36,6 +36,10 @@ template(name="userFormsLayout") unless currentSetting.customLoginLogoImageUrl img(src="{{pathFor '/wekan-logo.svg'}}" alt="" width="300" height="auto") br + if currentSetting.textBelowCustomLoginLogo + +viewer + | {{currentSetting.textBelowCustomLoginLogo}} + br section.auth-dialog if isLoading +loader diff --git a/client/components/settings/settingBody.jade b/client/components/settings/settingBody.jade index 9e2e39376..2acf6cb5d 100644 --- a/client/components/settings/settingBody.jade +++ b/client/components/settings/settingBody.jade @@ -192,6 +192,10 @@ template(name='layoutSettings') .title {{_ 'custom-login-logo-link-url'}} .form-group input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}") + li.layout-form + .title {{_ 'text-below-custom-login-logo'}} + .form-group + textarea#text-below-custom-login-logo.wekan-form-control= currentSetting.textBelowCustomLoginLogo li.layout-form .title {{_ 'custom-top-left-corner-logo-image-url'}} .form-group diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index b4154cb04..692240ef4 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -173,6 +173,9 @@ BlazeComponent.extendComponent({ const customLoginLogoLinkUrl = $('#custom-login-logo-link-url') .val() .trim(); + const textBelowCustomLoginLogo = $('#text-below-custom-login-logo') + .val() + .trim(); const customTopLeftCornerLogoImageUrl = $( '#custom-top-left-corner-logo-image-url', ) @@ -195,6 +198,7 @@ BlazeComponent.extendComponent({ hideLogo: hideLogoChange, customLoginLogoImageUrl, customLoginLogoLinkUrl, + textBelowCustomLoginLogo, customTopLeftCornerLogoImageUrl, customTopLeftCornerLogoLinkUrl, displayAuthenticationMethod, diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 4c285dab0..1ff43152a 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -518,6 +518,7 @@ "custom-top-left-corner-logo-link-url": "Custom Top Left Corner Logo Link URL", "custom-login-logo-image-url": "Custom Login Logo Image URL", "custom-login-logo-link-url": "Custom Login Logo Link URL", + "text-below-custom-login-logo": "Text below Custom Login Logo", "username": "Username", "view-it": "View it", "warn-list-archived": "warning: this card is in an list at Archive", diff --git a/models/settings.js b/models/settings.js index 897f06cf0..d4d38d8c2 100644 --- a/models/settings.js +++ b/models/settings.js @@ -53,6 +53,10 @@ Settings.attachSchema( type: String, optional: true, }, + textBelowCustomLoginLogo: { + type: String, + optional: true, + }, customTopLeftCornerLogoImageUrl: { type: String, optional: true, diff --git a/server/publications/settings.js b/server/publications/settings.js index 0013270e1..71fa335c4 100644 --- a/server/publications/settings.js +++ b/server/publications/settings.js @@ -14,6 +14,7 @@ Meteor.publish('setting', () => { hideLogo: 1, customLoginLogoImageUrl: 1, customLoginLogoLinkUrl: 1, + textBelowCustomLoginLogo: 1, customTopLeftCornerLogoImageUrl: 1, customTopLeftCornerLogoLinkUrl: 1, customHTMLafterBodyStart: 1,