Help links.
This commit is contained in:
parent
0ed934a8da
commit
e9ff502646
@ -12,6 +12,7 @@
|
||||
<div class="row mt-3">
|
||||
<div class="col-12 col-lg-4 col-xl-3">
|
||||
<h2>{{botOptions}}</h2>
|
||||
{{{helpButtonBot}}}
|
||||
</div>
|
||||
<div class="col-12 col-lg-8 col-xl-9">
|
||||
<div class="form-group">
|
||||
|
@ -38,18 +38,26 @@ async function fillViewHelpButtons (
|
||||
registerClientOptions: RegisterClientOptions,
|
||||
view: any
|
||||
): Promise<void> {
|
||||
const helpUrl = await localizedHelpUrl(registerClientOptions, {
|
||||
page: 'documentation/user/streamers/' // FIXME: this is not the good link
|
||||
})
|
||||
const helpIcon = helpButtonSVG()
|
||||
view.helpButton = `<a
|
||||
href="${helpUrl}"
|
||||
target=_blank
|
||||
class="orange-button peertube-button-link"
|
||||
>${helpIcon}</a>`
|
||||
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<string> => {
|
||||
const helpUrl = await localizedHelpUrl(registerClientOptions, {
|
||||
page
|
||||
})
|
||||
const helpIcon = helpButtonSVG()
|
||||
return `<a
|
||||
href="${helpUrl}"
|
||||
target=_blank
|
||||
title="${title}"
|
||||
class="orange-button peertube-button-link"
|
||||
>${helpIcon}</a>`
|
||||
}
|
||||
|
||||
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user