57 lines
3 KiB
HTML
57 lines
3 KiB
HTML
{{define "content"}}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h3 class="card-title">Configure Plugin: {{(index .Plugins .ChannelPlugin.PluginID).GetName}}</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="post">
|
|
<!-- Plugin configuration fields -->
|
|
{{if eq .ChannelPlugin.PluginID "security.domainblock"}}
|
|
<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>
|
|
{{else if eq .ChannelPlugin.PluginID "social.instagram"}}
|
|
<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>
|
|
{{else if eq .ChannelPlugin.PluginID "social.twitter"}}
|
|
<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>
|
|
{{else}}
|
|
<div class="alert alert-warning">
|
|
This plugin doesn't have specific configuration fields implemented yet.
|
|
</div>
|
|
{{end}}
|
|
|
|
<div class="form-footer">
|
|
<button type="submit" class="btn btn-primary">Save Configuration</button>
|
|
<a href="/admin/channels/{{.ChannelPlugin.ChannelID}}" class="btn btn-secondary">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|