All checks were successful
Plugins that require configuration (Twitter/Instagram expanders, Domain Blocker) can now have an app-wide default that each channel inherits and overrides only where needed. - model: add GlobalPluginConfig and MergeConfig (blank channel value inherits the global value) - migration: add global_plugin_config table (#5) - db: GetGlobalPluginConfig, GetAllGlobalPluginConfigs, SetGlobalPluginConfig - app: merge global + channel config per message - admin: /admin/plugins/config/<id> global config page, shared buildPluginConfigFromForm helper and _fields.html partial; channel form shows inherited global value as placeholder - docs: document global vs per-channel plugin configuration
21 lines
769 B
HTML
21 lines
769 B
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">
|
|
{{template "plugins/_fields.html" .}}
|
|
|
|
<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}}
|