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