mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 23:28:49 +01:00
Admin Panel / Settings / Layout / Custom Top Left Corner Logo Height.
Thanks to xet7 !
This commit is contained in:
parent
3f9b86d8e7
commit
4cfddf1d8d
6 changed files with 18 additions and 2 deletions
|
|
@ -27,9 +27,9 @@ template(name="header")
|
||||||
if currentSetting.customTopLeftCornerLogoImageUrl
|
if currentSetting.customTopLeftCornerLogoImageUrl
|
||||||
if currentSetting.customTopLeftCornerLogoLinkUrl
|
if currentSetting.customTopLeftCornerLogoLinkUrl
|
||||||
a(href="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
|
a(href="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
|
||||||
img(src="{{currentSetting.customTopLeftCornerLogoImageUrl}}" height="27" width="auto" margin="0" padding="0")
|
img(src="{{currentSetting.customTopLeftCornerLogoImageUrl}}" height="{{#if currentSetting.customTopLeftCornerLogoHeight}}#{currentSetting.customTopLeftCornerLogoHeight}{{else}}27{{/if}}" width="auto" margin="0" padding="0")
|
||||||
unless currentSetting.customTopLeftCornerLogoLinkUrl
|
unless currentSetting.customTopLeftCornerLogoLinkUrl
|
||||||
img(src="{{currentSetting.customTopLeftCornerLogoImageUrl}}" height="27" width="auto" margin="0" padding="0")
|
img(src="{{currentSetting.customTopLeftCornerLogoImageUrl}}" height="{{#if currentSetting.customTopLeftCornerLogoHeight}}#{currentSetting.customTopLeftCornerLogoHeight}{{else}}27{{/if}}" width="auto" margin="0" padding="0")
|
||||||
unless currentSetting.customTopLeftCornerLogoImageUrl
|
unless currentSetting.customTopLeftCornerLogoImageUrl
|
||||||
img(src="{{pathFor '/logo-header.png'}}" alt="")
|
img(src="{{pathFor '/logo-header.png'}}" alt="")
|
||||||
ul
|
ul
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,10 @@ template(name='layoutSettings')
|
||||||
.title {{_ 'custom-top-left-corner-logo-link-url'}}
|
.title {{_ 'custom-top-left-corner-logo-link-url'}}
|
||||||
.form-group
|
.form-group
|
||||||
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
|
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
|
||||||
|
li.layout-form
|
||||||
|
.title {{_ 'custom-top-left-corner-logo-height'}}
|
||||||
|
.form-group
|
||||||
|
input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}")
|
||||||
li
|
li
|
||||||
button.js-save-layout.primary {{_ 'save'}}
|
button.js-save-layout.primary {{_ 'save'}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,11 @@ BlazeComponent.extendComponent({
|
||||||
)
|
)
|
||||||
.val()
|
.val()
|
||||||
.trim();
|
.trim();
|
||||||
|
const customTopLeftCornerLogoHeight = $(
|
||||||
|
'#custom-top-left-corner-logo-height',
|
||||||
|
)
|
||||||
|
.val()
|
||||||
|
.trim();
|
||||||
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
|
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
|
||||||
const displayAuthenticationMethod =
|
const displayAuthenticationMethod =
|
||||||
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
||||||
|
|
@ -201,6 +206,7 @@ BlazeComponent.extendComponent({
|
||||||
textBelowCustomLoginLogo,
|
textBelowCustomLoginLogo,
|
||||||
customTopLeftCornerLogoImageUrl,
|
customTopLeftCornerLogoImageUrl,
|
||||||
customTopLeftCornerLogoLinkUrl,
|
customTopLeftCornerLogoLinkUrl,
|
||||||
|
customTopLeftCornerLogoHeight,
|
||||||
displayAuthenticationMethod,
|
displayAuthenticationMethod,
|
||||||
defaultAuthenticationMethod,
|
defaultAuthenticationMethod,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -516,6 +516,7 @@
|
||||||
"uploaded-avatar": "Uploaded an avatar",
|
"uploaded-avatar": "Uploaded an avatar",
|
||||||
"custom-top-left-corner-logo-image-url": "Custom Top Left Corner Logo Image URL",
|
"custom-top-left-corner-logo-image-url": "Custom Top Left Corner Logo Image URL",
|
||||||
"custom-top-left-corner-logo-link-url": "Custom Top Left Corner Logo Link URL",
|
"custom-top-left-corner-logo-link-url": "Custom Top Left Corner Logo Link URL",
|
||||||
|
"custom-top-left-corner-logo-height": "Custom Top Left Corner Logo Height. Default: 27",
|
||||||
"custom-login-logo-image-url": "Custom Login Logo Image URL",
|
"custom-login-logo-image-url": "Custom Login Logo Image URL",
|
||||||
"custom-login-logo-link-url": "Custom Login Logo Link URL",
|
"custom-login-logo-link-url": "Custom Login Logo Link URL",
|
||||||
"text-below-custom-login-logo": "Text below Custom Login Logo",
|
"text-below-custom-login-logo": "Text below Custom Login Logo",
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,10 @@ Settings.attachSchema(
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
customTopLeftCornerLogoHeight: {
|
||||||
|
type: String,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: Date,
|
type: Date,
|
||||||
denyUpdate: true,
|
denyUpdate: true,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ Meteor.publish('setting', () => {
|
||||||
textBelowCustomLoginLogo: 1,
|
textBelowCustomLoginLogo: 1,
|
||||||
customTopLeftCornerLogoImageUrl: 1,
|
customTopLeftCornerLogoImageUrl: 1,
|
||||||
customTopLeftCornerLogoLinkUrl: 1,
|
customTopLeftCornerLogoLinkUrl: 1,
|
||||||
|
customTopLeftCornerLogoHeight: 1,
|
||||||
customHTMLafterBodyStart: 1,
|
customHTMLafterBodyStart: 1,
|
||||||
customHTMLbeforeBodyEnd: 1,
|
customHTMLbeforeBodyEnd: 1,
|
||||||
displayAuthenticationMethod: 1,
|
displayAuthenticationMethod: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue