mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:27:33 +00:00
feat: add Help/Support e-mail for instance/org (#5445)
feat: help and support email in privacy policy
This commit is contained in:
@@ -442,6 +442,9 @@ func (l *Login) setLinksOnBaseData(baseData baseData, privacyPolicy *domain.Priv
|
||||
if link, err := templates.ParseTemplateText(privacyPolicy.HelpLink, lang); err == nil {
|
||||
baseData.HelpLink = link
|
||||
}
|
||||
if link, err := templates.ParseTemplateText(string(privacyPolicy.SupportEmail), lang); err == nil {
|
||||
baseData.SupportEmail = link
|
||||
}
|
||||
return baseData
|
||||
}
|
||||
|
||||
@@ -602,6 +605,7 @@ type baseData struct {
|
||||
TOSLink string
|
||||
PrivacyLink string
|
||||
HelpLink string
|
||||
SupportEmail string
|
||||
AuthReqID string
|
||||
CSRF template.HTML
|
||||
Nonce string
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: Passwort Bestätigung
|
||||
CancelButtonText: abbrechen
|
||||
NextButtonText: weiter
|
||||
Footer: Fusszeile
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: Passwort ändern
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: AGB
|
||||
PrivacyPolicy: Datenschutzerklärung
|
||||
Help: Hilfe
|
||||
SupportEmail: Support E-Mail
|
||||
|
||||
Errors:
|
||||
Internal: Es ist ein interner Fehler aufgetreten
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: Password confirmation
|
||||
CancelButtonText: cancel
|
||||
NextButtonText: next
|
||||
Footer: Footer
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: Change Password
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: TOS
|
||||
PrivacyPolicy: Privacy policy
|
||||
Help: Help
|
||||
SupportEmail: Support E-mail
|
||||
|
||||
Errors:
|
||||
Internal: An internal error occurred
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: Confirmation du mot de passe
|
||||
CancelButtonText: annuler
|
||||
NextButtonText: suivant
|
||||
Footer: Bas de page
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: Changer le mot de passe
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: TOS
|
||||
PrivacyPolicy: Politique de confidentialité
|
||||
Help: Aide
|
||||
SupportEmail: E-mail d'assistance
|
||||
|
||||
Errors:
|
||||
Internal: Une erreur interne s'est produite
|
||||
@@ -408,8 +410,8 @@ Errors:
|
||||
ExternalUserIDEmpty: L'ID de l'utilisateur externe est vide
|
||||
UserDisplayNameEmpty: Le nom d'affichage de l'utilisateur est vide
|
||||
NoExternalUserData: Aucune donnée d'utilisateur externe reçue
|
||||
CreationNotAllowed : La création d'un nouvel utilisateur n'est pas autorisée sur ce fournisseur.
|
||||
LinkingNotAllowed : La création d'un lien vers un utilisateur n'est pas autorisée pour ce fournisseur.
|
||||
CreationNotAllowed: La création d'un nouvel utilisateur n'est pas autorisée sur ce fournisseur.
|
||||
LinkingNotAllowed: La création d'un lien vers un utilisateur n'est pas autorisée pour ce fournisseur.
|
||||
GrantRequired: Connexion impossible. L'utilisateur doit avoir au moins une subvention sur l'application. Veuillez contacter votre administrateur.
|
||||
ProjectRequired: Connexion impossible. L'organisation de l'utilisateur doit être accordée au projet. Veuillez contacter votre administrateur.
|
||||
IdentityProvider:
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: Conferma della password
|
||||
CancelButtonText: annulla
|
||||
NextButtonText: Avanti
|
||||
Footer: Piè di pagina
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: Reimposta password
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: Termini di servizio
|
||||
PrivacyPolicy: l'informativa sulla privacy
|
||||
Help: Aiuto
|
||||
SupportEmail: E-mail di supporto
|
||||
|
||||
Errors:
|
||||
Internal: Si è verificato un errore interno
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: Potwierdzenie hasła
|
||||
CancelButtonText: anuluj
|
||||
NextButtonText: dalej
|
||||
Footer: Stopka
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: Zmiana hasła
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: TOS
|
||||
PrivacyPolicy: Polityka prywatności
|
||||
Help: Pomoc
|
||||
SupportEmail: E-mail wsparcia
|
||||
|
||||
Errors:
|
||||
Internal: Wewnętrzny błąd
|
||||
|
@@ -172,6 +172,7 @@ PasswordChange:
|
||||
NewPasswordConfirmLabel: 确认密码
|
||||
CancelButtonText: 取消
|
||||
NextButtonText: 继续
|
||||
Footer: 页脚
|
||||
|
||||
PasswordChangeDone:
|
||||
Title: 更改密码
|
||||
@@ -318,6 +319,7 @@ Footer:
|
||||
Tos: 服务条款
|
||||
PrivacyPolicy: 隐私政策
|
||||
Help: 帮助
|
||||
SupportEmail: 支持邮箱
|
||||
|
||||
Errors:
|
||||
Internal: 发生了内部错误
|
||||
|
@@ -1,20 +1,41 @@
|
||||
{{define "footer"}}
|
||||
<footer>
|
||||
{{ if hasWatermark .LabelPolicy }}
|
||||
<span class="watermark" >
|
||||
<span class="powered">{{t "Footer.PoweredBy"}}</span>
|
||||
<span class="lgn-logo-watermark" sourcelight="logo-light.svg" sourcedark="logo-dark.svg" alt="logo"></span>
|
||||
</span>
|
||||
{{end}}
|
||||
<span class="fill-space"></span>
|
||||
{{ if .TOSLink }}
|
||||
<a href="{{.TOSLink}}" rel="noopener noreferrer" target="_blank" alt="TOS">{{t "Footer.Tos"}}</a>
|
||||
{{ end }}
|
||||
{{ if .PrivacyLink }}
|
||||
<a href="{{.PrivacyLink}}" rel="noopener noreferrer" target="_blank" alt="Privacy Policy">{{t "Footer.PrivacyPolicy"}}</a>
|
||||
{{end}}
|
||||
{{ if .HelpLink }}
|
||||
<a href="{{.HelpLink}}" rel="noopener noreferrer" target="_blank" alt="Help">{{t "Footer.Help"}}</a>
|
||||
{{end}}
|
||||
{{ if hasWatermark .LabelPolicy }}
|
||||
<span class="watermark">
|
||||
<span class="powered">{{t "Footer.PoweredBy"}}</span>
|
||||
<span
|
||||
class="lgn-logo-watermark"
|
||||
sourcelight="logo-light.svg"
|
||||
sourcedark="logo-dark.svg"
|
||||
alt="logo"
|
||||
></span>
|
||||
</span>
|
||||
{{end}}
|
||||
<span class="fill-space"></span>
|
||||
{{ if .TOSLink }}
|
||||
<a href="{{.TOSLink}}" rel="noopener noreferrer" target="_blank" alt="TOS"
|
||||
>{{t "Footer.Tos"}}</a
|
||||
>
|
||||
{{ end }} {{ if .PrivacyLink }}
|
||||
<a
|
||||
href="{{.PrivacyLink}}"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
alt="Privacy Policy"
|
||||
>{{t "Footer.PrivacyPolicy"}}</a
|
||||
>
|
||||
{{end}} {{ if .HelpLink }}
|
||||
<a href="{{.HelpLink}}" rel="noopener noreferrer" target="_blank" alt="Help"
|
||||
>{{t "Footer.Help"}}</a
|
||||
>
|
||||
{{end}} {{ if .SupportEmail }}
|
||||
<a
|
||||
href="mailto:{{.SupportEmail}}"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
alt="Help"
|
||||
>{{t "Footer.SupportEmail"}}</a
|
||||
>
|
||||
{{end}}
|
||||
</footer>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user