mirror of
https://github.com/svemagie/indiekit-endpoint-microsub.git
synced 2026-04-02 15:35:00 +02:00
- Namespace all plugin CSS classes with ms- prefix (20 BEM blocks) - Update all 19 templates to match prefixed class names - Replace visually-hidden with -!-visually-hidden (core convention) - Remove inline onerror handlers from avatar/photo images - Remove dead source-type SVG icons (Fediverse/Bluesky/Web) Confab-Link: http://localhost:8080/sessions/bb4a6ec4-b711-48cd-b3d7-942ec2a9851d
76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
{% extends "layouts/reader.njk" %}
|
|
|
|
{% block reader %}
|
|
<div class="ms-settings">
|
|
<a href="{{ baseUrl }}/channels/{{ channel.uid }}" class="back-link">
|
|
{{ icon("previous") }} {{ channel.name }}
|
|
</a>
|
|
|
|
<h2>{{ __("microsub.settings.title", { channel: channel.name }) }}</h2>
|
|
|
|
<form method="post" action="{{ baseUrl }}/channels/{{ channel.uid }}/settings">
|
|
{{ checkboxes({
|
|
name: "excludeTypes",
|
|
values: channel.settings.excludeTypes,
|
|
fieldset: {
|
|
legend: __("microsub.settings.excludeTypes")
|
|
},
|
|
hint: __("microsub.settings.excludeTypesHelp"),
|
|
items: [
|
|
{
|
|
label: __("microsub.settings.types.like"),
|
|
value: "like"
|
|
},
|
|
{
|
|
label: __("microsub.settings.types.repost"),
|
|
value: "repost"
|
|
},
|
|
{
|
|
label: __("microsub.settings.types.bookmark"),
|
|
value: "bookmark"
|
|
},
|
|
{
|
|
label: __("microsub.settings.types.reply"),
|
|
value: "reply"
|
|
},
|
|
{
|
|
label: __("microsub.settings.types.checkin"),
|
|
value: "checkin"
|
|
}
|
|
]
|
|
}) }}
|
|
|
|
{{ input({
|
|
id: "excludeRegex",
|
|
name: "excludeRegex",
|
|
label: __("microsub.settings.excludeRegex"),
|
|
hint: __("microsub.settings.excludeRegexHelp"),
|
|
value: channel.settings.excludeRegex
|
|
}) }}
|
|
|
|
<div class="button-group">
|
|
{{ button({
|
|
text: __("microsub.settings.save")
|
|
}) }}
|
|
<a href="{{ baseUrl }}/channels/{{ channel.uid }}" class="button button--secondary">
|
|
{{ __("Cancel") }}
|
|
</a>
|
|
</div>
|
|
</form>
|
|
|
|
{% if channel.uid !== "notifications" %}
|
|
<hr class="divider">
|
|
<div class="danger-zone">
|
|
<h3>{{ __("microsub.settings.dangerZone") }}</h3>
|
|
<p class="hint">{{ __("microsub.settings.deleteWarning") }}</p>
|
|
<form method="post" action="{{ baseUrl }}/channels/{{ channel.uid }}/delete" onsubmit="return confirm('{{ __("microsub.settings.deleteConfirm") }}');">
|
|
{{ button({
|
|
text: __("microsub.settings.delete"),
|
|
classes: "button--danger"
|
|
}) }}
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|