mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Added help button with custom URL.
This commit is contained in:
parent
86d86b30e9
commit
d610d03423
7 changed files with 24 additions and 2 deletions
|
|
@ -178,13 +178,15 @@
|
||||||
top: -5px;
|
top: -5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
#header-quick-access #header-user-bar .header-user-bar-avatar .member {
|
#header-quick-access #header-user-bar .header-user-bar-avatar .member,
|
||||||
|
#header-quick-access #header-help {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
#header-quick-access #header-user-bar .header-user-bar-name {
|
#header-quick-access #header-user-bar .header-user-bar-name,
|
||||||
|
#header-quick-access #header-help {
|
||||||
margin: 4px 8px 0 0;
|
margin: 4px 8px 0 0;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,11 @@ template(name="header")
|
||||||
|
|
||||||
+notifications
|
+notifications
|
||||||
|
|
||||||
|
if currentSetting.customHelpLinkUrl
|
||||||
|
#header-help
|
||||||
|
a(href="{{currentSetting.customHelpLinkUrl}}", title="{{_ 'help'}}", target="_blank", rel="noopener noreferrer")
|
||||||
|
span.fa.fa-question
|
||||||
|
|
||||||
+headerUserBar
|
+headerUserBar
|
||||||
|
|
||||||
#header(class=currentBoard.colorClass)
|
#header(class=currentBoard.colorClass)
|
||||||
|
|
|
||||||
|
|
@ -229,6 +229,10 @@ template(name='layoutSettings')
|
||||||
.title {{_ 'custom-login-logo-link-url'}}
|
.title {{_ 'custom-login-logo-link-url'}}
|
||||||
.form-group
|
.form-group
|
||||||
input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}")
|
input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}")
|
||||||
|
li.layout-form
|
||||||
|
.title {{_ 'custom-help-link-url'}}
|
||||||
|
.form-group
|
||||||
|
input.wekan-form-control#custom-help-link-url(type="text", placeholder="" value="{{currentSetting.customHelpLinkUrl}}")
|
||||||
li.layout-form
|
li.layout-form
|
||||||
.title {{_ 'text-below-custom-login-logo'}}
|
.title {{_ 'text-below-custom-login-logo'}}
|
||||||
.form-group
|
.form-group
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,9 @@ BlazeComponent.extendComponent({
|
||||||
const customLoginLogoLinkUrl = $('#custom-login-logo-link-url')
|
const customLoginLogoLinkUrl = $('#custom-login-logo-link-url')
|
||||||
.val()
|
.val()
|
||||||
.trim();
|
.trim();
|
||||||
|
const customHelpLinkUrl = $('#custom-help-link-url')
|
||||||
|
.val()
|
||||||
|
.trim();
|
||||||
const textBelowCustomLoginLogo = $('#text-below-custom-login-logo')
|
const textBelowCustomLoginLogo = $('#text-below-custom-login-logo')
|
||||||
.val()
|
.val()
|
||||||
.trim();
|
.trim();
|
||||||
|
|
@ -240,6 +243,7 @@ BlazeComponent.extendComponent({
|
||||||
hideLogo: hideLogoChange,
|
hideLogo: hideLogoChange,
|
||||||
customLoginLogoImageUrl,
|
customLoginLogoImageUrl,
|
||||||
customLoginLogoLinkUrl,
|
customLoginLogoLinkUrl,
|
||||||
|
customHelpLinkUrl,
|
||||||
textBelowCustomLoginLogo,
|
textBelowCustomLoginLogo,
|
||||||
customTopLeftCornerLogoImageUrl,
|
customTopLeftCornerLogoImageUrl,
|
||||||
customTopLeftCornerLogoLinkUrl,
|
customTopLeftCornerLogoLinkUrl,
|
||||||
|
|
|
||||||
|
|
@ -597,6 +597,7 @@
|
||||||
"custom-top-left-corner-logo-height": "Custom Top Left Corner Logo Height. Default: 27",
|
"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",
|
||||||
|
"custom-help-link-url": "Custom Help Link URL",
|
||||||
"text-below-custom-login-logo": "Text below Custom Login Logo",
|
"text-below-custom-login-logo": "Text below Custom Login Logo",
|
||||||
"automatic-linked-url-schemes": "Custom URL Schemes which should automatically be clickable. One URL Scheme per line",
|
"automatic-linked-url-schemes": "Custom URL Schemes which should automatically be clickable. One URL Scheme per line",
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
|
|
@ -904,6 +905,7 @@
|
||||||
"editUserPopup-title": "Edit User",
|
"editUserPopup-title": "Edit User",
|
||||||
"newUserPopup-title": "New User",
|
"newUserPopup-title": "New User",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications",
|
||||||
|
"help": "Help",
|
||||||
"view-all": "View All",
|
"view-all": "View All",
|
||||||
"filter-by-unread": "Filter by Unread",
|
"filter-by-unread": "Filter by Unread",
|
||||||
"mark-all-as-read": "Mark all as read",
|
"mark-all-as-read": "Mark all as read",
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,10 @@ Settings.attachSchema(
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
customHelpLinkUrl: {
|
||||||
|
type: String,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
textBelowCustomLoginLogo: {
|
textBelowCustomLoginLogo: {
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ Meteor.publish('setting', () => {
|
||||||
hideLogo: 1,
|
hideLogo: 1,
|
||||||
customLoginLogoImageUrl: 1,
|
customLoginLogoImageUrl: 1,
|
||||||
customLoginLogoLinkUrl: 1,
|
customLoginLogoLinkUrl: 1,
|
||||||
|
customHelpLinkUrl: 1,
|
||||||
textBelowCustomLoginLogo: 1,
|
textBelowCustomLoginLogo: 1,
|
||||||
automaticLinkedUrlSchemes: 1,
|
automaticLinkedUrlSchemes: 1,
|
||||||
customTopLeftCornerLogoImageUrl: 1,
|
customTopLeftCornerLogoImageUrl: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue