2023-09-22 11:56:48 +00:00
|
|
|
<div class="margin-content peertube-plugin-livechat-configuration peertube-plugin-livechat-configuration-channel">
|
|
|
|
<h1>
|
|
|
|
{{title}}:
|
|
|
|
<span class="peertube-plugin-livechat-configuration-channel-info">
|
|
|
|
<span>{{channelConfiguration.channel.displayName}}</span>
|
|
|
|
<span>{{channelConfiguration.channel.name}}</span>
|
|
|
|
</span>
|
|
|
|
{{{helpButton}}}
|
|
|
|
</h1>
|
|
|
|
<p>{{description}}</p>
|
|
|
|
<form livechat-configuration-channel-options role="form">
|
2024-02-13 11:49:22 +00:00
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
2024-03-07 16:56:27 +00:00
|
|
|
<h2>{{slowModeLabel}}</h2>
|
|
|
|
<p>{{{slowModeDesc}}}</p>
|
2024-02-22 13:53:41 +00:00
|
|
|
{{{helpButtonSlowMode}}}
|
2024-02-13 11:49:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<input
|
|
|
|
type="number"
|
2024-03-07 16:56:27 +00:00
|
|
|
name="slow_mode_duration"
|
2024-02-22 13:53:41 +00:00
|
|
|
class="form-control"
|
2024-02-13 11:49:22 +00:00
|
|
|
min="0"
|
|
|
|
max="1000"
|
2024-03-07 16:56:27 +00:00
|
|
|
id="peertube-livechat-slow-mode-duration"
|
|
|
|
value="{{channelConfiguration.configuration.slowMode.duration}}"
|
2024-02-13 11:49:22 +00:00
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-22 11:56:48 +00:00
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
|
|
|
<h2>{{botOptions}}</h2>
|
2023-09-22 18:39:50 +00:00
|
|
|
{{{helpButtonBot}}}
|
2023-09-22 11:56:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
name="bot"
|
|
|
|
id="peertube-livechat-bot"
|
|
|
|
value="1"
|
|
|
|
{{#channelConfiguration.configuration.bot.enabled}}
|
|
|
|
checked="checked"
|
|
|
|
{{/channelConfiguration.configuration.bot.enabled}}
|
|
|
|
/>
|
|
|
|
{{enableBot}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="form-group" livechat-configuration-channel-options-bot-enabled>
|
|
|
|
<label for="peertube-livechat-bot-nickname">{{botNickname}}</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="bot_nickname"
|
|
|
|
class="form-control"
|
|
|
|
id="peertube-livechat-bot-nickname"
|
|
|
|
value="{{channelConfiguration.configuration.bot.nickname}}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#forbiddenWordsArray}}{{! iterating on forbiddenWordsArray to display N fields }}
|
|
|
|
<div class="row mt-5" livechat-configuration-channel-options-bot-enabled>
|
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
|
|
|
<h2>{{forbiddenWords}} #{{displayNumber}}</h2>
|
|
|
|
{{#displayHelp}}
|
|
|
|
<p>{{forbiddenWordsDesc}} {{moreInfo}}</p>
|
2023-09-22 12:04:49 +00:00
|
|
|
{{{helpButtonForbiddenWords}}}
|
2023-09-22 11:56:48 +00:00
|
|
|
{{/displayHelp}}
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-forbidden-words-{{fieldNumber}}">{{forbiddenWords}}</label>
|
|
|
|
{{! warning: don't add extra line break in textarea! }}
|
|
|
|
<textarea
|
|
|
|
name="forbidden_words_{{fieldNumber}}"
|
|
|
|
id="peertube-livechat-forbidden-words-{{fieldNumber}}"
|
|
|
|
class="form-control"
|
2023-09-22 14:30:12 +00:00
|
|
|
>{{joinedEntries}}</textarea>
|
2023-09-22 11:56:48 +00:00
|
|
|
<p class="form-group-description">{{forbiddenWordsDesc2}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
name="forbidden_words_regexp_{{fieldNumber}}"
|
|
|
|
value="1"
|
|
|
|
{{#regexp}}
|
|
|
|
checked="checked"
|
|
|
|
{{/regexp}}
|
|
|
|
/>
|
|
|
|
{{forbiddenWordsRegexp}}
|
|
|
|
</label>
|
|
|
|
<p class="form-group-description">{{forbiddenWordsRegexpDesc}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>
|
|
|
|
<input
|
|
|
|
type="checkbox"
|
|
|
|
name="forbidden_words_applytomoderators_{{fieldNumber}}"
|
|
|
|
value="1"
|
|
|
|
{{#applyToModerators}}
|
|
|
|
checked="checked"
|
|
|
|
{{/applyToModerators}}
|
|
|
|
/>
|
|
|
|
{{forbiddenWordsApplyToModerators}}
|
|
|
|
</label>
|
|
|
|
<p class="form-group-description">{{forbiddenWordsApplyToModeratorsDesc}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-forbidden-words-reason-{{fieldNumber}}">{{forbiddenWordsReason}}</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="forbidden_words_reason_{{fieldNumber}}"
|
|
|
|
class="form-control"
|
|
|
|
id="peertube-livechat-forbidden-words-reason-{{fieldNumber}}"
|
|
|
|
value="{{reason}}"
|
|
|
|
/>
|
|
|
|
<p class="form-group-description">{{forbiddenWordsReasonDesc}}</p>
|
|
|
|
</div>
|
2023-09-25 11:16:15 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-forbidden-words-comments-{{fieldNumber}}">{{forbiddenWordsComments}}</label>
|
|
|
|
{{! warning: don't add extra line break in textarea! }}
|
|
|
|
<textarea
|
|
|
|
name="forbidden_words_comments_{{fieldNumber}}"
|
|
|
|
id="peertube-livechat-forbidden-words-comments-{{fieldNumber}}"
|
|
|
|
class="form-control"
|
|
|
|
>{{comments}}</textarea>
|
|
|
|
<p class="form-group-description">{{forbiddenWordsCommentsDesc}}</p>
|
|
|
|
</div>
|
2023-09-22 11:56:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/forbiddenWordsArray}}
|
|
|
|
|
|
|
|
{{#quotesArray}}{{! iterating on quotesArray to display N fields }}
|
|
|
|
<div class="row mt-5" livechat-configuration-channel-options-bot-enabled>
|
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
|
|
|
<h2>{{quoteLabel}} #{{displayNumber}}</h2>
|
|
|
|
{{#displayHelp}}
|
|
|
|
<p>{{quoteDesc}} {{moreInfo}}</p>
|
|
|
|
{{{helpButtonQuotes}}}
|
|
|
|
{{/displayHelp}}
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<div class="form-group">
|
2023-09-26 12:58:59 +00:00
|
|
|
<label for="peertube-livechat-quote-{{fieldNumber}}">{{quoteLabel2}}</label>
|
2023-09-22 11:56:48 +00:00
|
|
|
{{! warning: don't add extra line break in textarea! }}
|
|
|
|
<textarea
|
|
|
|
name="quote_{{fieldNumber}}"
|
|
|
|
id="peertube-livechat-quote-{{fieldNumber}}"
|
|
|
|
class="form-control"
|
2023-09-22 14:30:12 +00:00
|
|
|
>{{joinedMessages}}</textarea>
|
2023-09-22 11:56:48 +00:00
|
|
|
<p class="form-group-description">{{quoteDesc2}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-quote-delay-{{fieldNumber}}">{{quoteDelayLabel}}</label>
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
min="1"
|
|
|
|
max="6000"
|
|
|
|
step="1"
|
|
|
|
name="quote_delay_{{fieldNumber}}"
|
|
|
|
class="form-control"
|
|
|
|
id="peertube-livechat-quote-delay-{{fieldNumber}}"
|
2023-09-22 14:30:12 +00:00
|
|
|
value="{{delay}}"
|
2023-09-22 11:56:48 +00:00
|
|
|
/>
|
|
|
|
<p class="form-group-description">{{quoteDelayDesc}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/quotesArray}}
|
|
|
|
|
|
|
|
{{#cmdsArray}}{{! iterating on cmdsArray to display N fields }}
|
|
|
|
<div class="row mt-5" livechat-configuration-channel-options-bot-enabled>
|
|
|
|
<div class="col-12 col-lg-4 col-xl-3">
|
|
|
|
<h2>{{commandLabel}} #{{displayNumber}}</h2>
|
|
|
|
{{#displayHelp}}
|
|
|
|
<p>{{commandDesc}} {{moreInfo}}</p>
|
|
|
|
{{{helpButtonCommands}}}
|
|
|
|
{{/displayHelp}}
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-8 col-xl-9">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-command-{{fieldNumber}}">{{commandCmdLabel}}</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="command_{{fieldNumber}}"
|
|
|
|
class="form-control"
|
|
|
|
id="peertube-livechat-command-{{fieldNumber}}"
|
2023-09-22 14:30:12 +00:00
|
|
|
value="{{command}}"
|
2023-09-22 11:56:48 +00:00
|
|
|
/>
|
|
|
|
<p class="form-group-description">{{commandCmdDesc}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="peertube-livechat-command-message-{{fieldNumber}}">{{commandMessageLabel}}</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="command_message_{{fieldNumber}}"
|
|
|
|
class="form-control"
|
|
|
|
id="peertube-livechat-command-message-{{fieldNumber}}"
|
2023-09-22 14:30:12 +00:00
|
|
|
value="{{message}}"
|
2023-09-22 11:56:48 +00:00
|
|
|
/>
|
|
|
|
<p class="form-group-description">{{commandMessageDesc}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/cmdsArray}}
|
2023-09-26 12:15:29 +00:00
|
|
|
<div class="form-group mt-5">
|
2023-09-22 11:56:48 +00:00
|
|
|
<input type="submit" value="{{save}}" />
|
|
|
|
<input type="reset" value="{{cancel}}" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|