chore: split plugin configuration templates
This commit is contained in:
parent
fc77c97547
commit
899ac49336
5 changed files with 60 additions and 31 deletions
12
internal/admin/templates/plugins/security.domainblock.html
Normal file
12
internal/admin/templates/plugins/security.domainblock.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{define "plugins/security.domainblock.html"}}
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Blocked Domains</label>
|
||||
<input type="text" class="form-control" name="blocked_domains"
|
||||
value="{{with .ChannelPlugin.Config}}{{index . "blocked_domains"}}{{end}}"
|
||||
placeholder="example.com, evil.org, ads.com">
|
||||
<div class="form-text text-muted">
|
||||
Enter comma-separated list of domains to block (e.g., example.com, evil.org).
|
||||
Messages containing links to these domains will be blocked.
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
11
internal/admin/templates/plugins/social.instagram.html
Normal file
11
internal/admin/templates/plugins/social.instagram.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{define "plugins/social.instagram.html"}}
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Replacement Domain</label>
|
||||
<input type="text" class="form-control" name="domain"
|
||||
value="{{with .ChannelPlugin.Config}}{{index . "domain"}}{{end}}"
|
||||
placeholder="ddinstagram.com">
|
||||
<div class="form-text text-muted">
|
||||
Enter the domain to replace instagram.com links with. Default is ddinstagram.com if left empty.
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
11
internal/admin/templates/plugins/social.twitter.html
Normal file
11
internal/admin/templates/plugins/social.twitter.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{define "plugins/social.twitter.html"}}
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Replacement Domain</label>
|
||||
<input type="text" class="form-control" name="domain"
|
||||
value="{{with .ChannelPlugin.Config}}{{index . "domain"}}{{end}}"
|
||||
placeholder="fxtwitter.com">
|
||||
<div class="form-text text-muted">
|
||||
Enter the domain to replace twitter.com and x.com links with. Default is fxtwitter.com if left empty.
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue