diff --git a/client/common/configuration/templates/channel.mustache b/client/common/configuration/templates/channel.mustache index ffa65f62..402ed1d8 100644 --- a/client/common/configuration/templates/channel.mustache +++ b/client/common/configuration/templates/channel.mustache @@ -12,6 +12,7 @@

{{botOptions}}

+ {{{helpButtonBot}}}
diff --git a/client/common/configuration/templates/channel.ts b/client/common/configuration/templates/channel.ts index 79020065..3fdeceea 100644 --- a/client/common/configuration/templates/channel.ts +++ b/client/common/configuration/templates/channel.ts @@ -38,18 +38,26 @@ async function fillViewHelpButtons ( registerClientOptions: RegisterClientOptions, view: any ): Promise { - const helpUrl = await localizedHelpUrl(registerClientOptions, { - page: 'documentation/user/streamers/' // FIXME: this is not the good link - }) - const helpIcon = helpButtonSVG() - view.helpButton = `${helpIcon}` - view.helpButtonForbiddenWords = view.helpButton // FIXME: this is not the good link - view.helpButtonQuotes = view.helpButton // FIXME: this is not the good link - view.helpButtonCommands = view.helpButton // FIXME: this is not the good link + const title = await registerClientOptions.peertubeHelpers.translate(LOC_ONLINE_HELP) + + const button = async (page: string): Promise => { + const helpUrl = await localizedHelpUrl(registerClientOptions, { + page + }) + const helpIcon = helpButtonSVG() + return `${helpIcon}` + } + + view.helpButton = await button('documentation/user/streamers/channel') + view.helpButtonBot = await button('documentation/user/streamers/bot') + view.helpButtonForbiddenWords = await button('documentation/user/streamers/bot/forbidden_words') + view.helpButtonQuotes = await button('documentation/user/streamers/bot/quotes') + view.helpButtonCommands = await button('documentation/user/streamers/bot/commands') } async function fillLabels (