At Admin Panel / Layout: Text below custom login logo. Can have markdown formatting.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-10-03 00:21:19 +03:00
parent 41a8e79e0e
commit 7223d6e750
6 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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,

View file

@ -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",

View file

@ -53,6 +53,10 @@ Settings.attachSchema(
type: String,
optional: true,
},
textBelowCustomLoginLogo: {
type: String,
optional: true,
},
customTopLeftCornerLogoImageUrl: {
type: String,
optional: true,

View file

@ -14,6 +14,7 @@ Meteor.publish('setting', () => {
hideLogo: 1,
customLoginLogoImageUrl: 1,
customLoginLogoLinkUrl: 1,
textBelowCustomLoginLogo: 1,
customTopLeftCornerLogoImageUrl: 1,
customTopLeftCornerLogoLinkUrl: 1,
customHTMLafterBodyStart: 1,