瀏覽代碼

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

Thanks to xet7 !
Lauri Ojansivu 4 年之前
父節點
當前提交
7223d6e750

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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,

+ 1 - 0
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",

+ 4 - 0
models/settings.js

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

+ 1 - 0
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,