Make support URL configurable

In self-hosted environments, users may want to point to an internal
website or Wiki for Taiga support.

- Add a configuration option named "supportUrl", akin to
  privacyPolicyUrl and termsOfServiceUrl.
- Set its default to https://tree.taiga.io/support/ to mirror the
  previous behavior.

Fixes #1389.
stable
Florian Haas 2017-11-21 09:51:53 +01:00 committed by Jesús Espino
parent d06fdc6152
commit fcec6df4d2
3 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ NavigationBarDirective = (currentUserService, navigationBarService, locationServ
taiga.defineImmutableProperty(scope.vm, "isEnabledHeader", () -> navigationBarService.isEnabledHeader())
scope.vm.publicRegisterEnabled = config.get("publicRegisterEnabled")
scope.vm.supportUrl = config.get("supportUrl")
scope.vm.login = ->
nextUrl = encodeURIComponent(locationService.url())

View File

@ -16,7 +16,7 @@ nav.navbar(ng-if="vm.isEnabledHeader")
include ../../svg/logo.svg
a(
href="https://tree.taiga.io/support/",
href="{{ vm.supportUrl }}",
target="_blank",
title="{{'PROJECT.NAVIGATION.HELP_TITLE' | translate}}",
translate="PROJECT.NAVIGATION.HELP"

View File

@ -11,6 +11,7 @@
"defaultTheme": "taiga",
"publicRegisterEnabled": true,
"feedbackEnabled": true,
"supportUrl": "https://tree.taiga.io/support",
"privacyPolicyUrl": null,
"termsOfServiceUrl": null,
"maxUploadFileSize": null,