@rmdes/indiekit-endpoint-microsub 1.0.0-beta.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/views/compose.njk CHANGED
@@ -24,6 +24,12 @@
24
24
  </div>
25
25
  {% endif %}
26
26
 
27
+ {% if bookmarkOf %}
28
+ <div class="compose__context">
29
+ {{ icon("bookmark") }} {{ __("microsub.compose.bookmarkOf") }}: <a href="{{ bookmarkOf }}">{{ bookmarkOf }}</a>
30
+ </div>
31
+ {% endif %}
32
+
27
33
  <form method="post" action="{{ baseUrl }}/compose">
28
34
  {% if replyTo %}
29
35
  <input type="hidden" name="in-reply-to" value="{{ replyTo }}">
@@ -34,8 +40,11 @@
34
40
  {% if repostOf %}
35
41
  <input type="hidden" name="repost-of" value="{{ repostOf }}">
36
42
  {% endif %}
43
+ {% if bookmarkOf %}
44
+ <input type="hidden" name="bookmark-of" value="{{ bookmarkOf }}">
45
+ {% endif %}
37
46
 
38
- {% if not likeOf and not repostOf %}
47
+ {% if not likeOf and not repostOf and not bookmarkOf %}
39
48
  {{ textarea({
40
49
  label: __("microsub.compose.content"),
41
50
  id: "content",
@@ -55,5 +55,19 @@
55
55
  </a>
56
56
  </div>
57
57
  </form>
58
+
59
+ {% if channel.uid !== "notifications" %}
60
+ <hr class="divider">
61
+ <div class="danger-zone">
62
+ <h3>{{ __("microsub.settings.dangerZone") }}</h3>
63
+ <p class="hint">{{ __("microsub.settings.deleteWarning") }}</p>
64
+ <form method="post" action="{{ baseUrl }}/channels/{{ channel.uid }}/delete" onsubmit="return confirm('{{ __("microsub.settings.deleteConfirm") }}');">
65
+ {{ button({
66
+ text: __("microsub.settings.delete"),
67
+ classes: "button--danger"
68
+ }) }}
69
+ </form>
70
+ </div>
71
+ {% endif %}
58
72
  </div>
59
73
  {% endblock %}