{% extends "layouts/reader.njk" %} {% block reader %}
{{ icon("previous") }} {{ __("Back") }}

{{ __("microsub.compose.title") }}

{% if replyTo and replyTo is string %}
{{ icon("reply") }} {{ __("microsub.compose.replyTo") }}: {{ replyTo | replace("https://", "") | replace("http://", "") }}
{% endif %} {% if likeOf and likeOf is string %}
{{ icon("like") }} {{ __("microsub.compose.likeOf") }}: {{ likeOf | replace("https://", "") | replace("http://", "") }}
{% endif %} {% if repostOf and repostOf is string %}
{{ icon("repost") }} {{ __("microsub.compose.repostOf") }}: {{ repostOf | replace("https://", "") | replace("http://", "") }}
{% endif %} {% if bookmarkOf and bookmarkOf is string %}
{{ icon("bookmark") }} {{ __("microsub.compose.bookmarkOf") }}: {{ bookmarkOf | replace("https://", "") | replace("http://", "") }}
{% endif %}
{% if replyTo %} {% endif %} {% if likeOf %} {% endif %} {% if repostOf %} {% endif %} {% if bookmarkOf %} {% endif %} {% set isAction = likeOf or repostOf or bookmarkOf %} {{ textarea({ label: __("microsub.compose.content") if not isAction else __("microsub.compose.comment"), id: "content", name: "content", rows: 5 if not isAction else 3, attributes: { autofocus: true }, hint: __("microsub.compose.commentHint") if isAction else false }) }}
0 characters
{# Syndication targets #} {% if syndicationTargets and syndicationTargets.length %} {% endif %}
{{ button({ text: __("microsub.compose.submit") }) }} {{ __("microsub.compose.cancel") }}
{% endblock %}