2023-04-10 13:02:25 +03:00
{% include "header.html" %}
< div class = "body" >
2023-05-18 22:15:05 +03:00
{% if list.topics|length > 0 %}< span > < em > Topics< / em > :< / span > {{ list.topics() }}
< br aria-hidden = "true" >
< br aria-hidden = "true" >
{% endif %}
2023-04-14 22:46:22 +03:00
{% if list.description %}
2023-05-19 12:02:37 +03:00
< p title = "mailing list description" > {{ list.description }}< / p >
2023-04-14 22:46:22 +03:00
{% else %}
2023-04-27 19:01:14 +03:00
< p title = "mailing list description" > No list description.< / p >
2023-04-14 22:46:22 +03:00
{% endif %}
2023-04-27 19:01:14 +03:00
< br aria-hidden = "true" >
2023-04-14 14:30:05 +03:00
{% if current_user and not post_policy.no_subscriptions and subscription_policy.open %}
{% if user_context %}
2023-05-09 13:38:41 +03:00
< form method = "post" action = "{{ settings_path() }}" class = "settings-form" >
2023-04-14 14:30:05 +03:00
< input type = "hidden" name = "type" , value = "unsubscribe" >
< input type = "hidden" name = "list_pk" , value = "{{ list.pk }}" >
< input type = "submit" name = "unsubscribe" value = "Unsubscribe as {{ current_user.address }}" >
< / form >
2023-05-19 12:02:37 +03:00
< br / >
2023-04-14 14:30:05 +03:00
{% else %}
2023-05-09 13:38:41 +03:00
< form method = "post" action = "{{ settings_path() }}" class = "settings-form" >
2023-04-14 14:30:05 +03:00
< input type = "hidden" name = "type" , value = "subscribe" >
< input type = "hidden" name = "list_pk" , value = "{{ list.pk }}" >
< input type = "submit" name = "subscribe" value = "Subscribe as {{ current_user.address }}" >
< / form >
2023-05-19 12:02:37 +03:00
< br / >
2023-04-14 14:30:05 +03:00
{% endif %}
{% endif %}
2023-04-10 13:02:25 +03:00
{% if preamble %}
2023-04-27 19:01:14 +03:00
< section id = "preamble" class = "preamble" aria-label = "mailing list instructions" >
2023-04-10 13:02:25 +03:00
{% if preamble.custom %}
{{ preamble.custom|safe }}
{% else %}
{% if not post_policy.no_subscriptions %}
2023-05-09 13:38:41 +03:00
{{ heading(3, "Subscribe") }}
2023-04-13 22:25:20 +03:00
{% set subscription_mailto=list.subscription_mailto() %}
{% if subscription_mailto %}
{% if subscription_mailto.subject %}
2023-04-10 13:02:25 +03:00
< p >
2023-04-13 22:25:20 +03:00
< a href = "mailto:{{ subscription_mailto.address|safe }}?subject={{ subscription_mailto.subject|safe }}" > < code > {{ subscription_mailto.address }}< / code > < / a > with the following subject: < code > {{ subscription_mailto.subject}}< / code >
2023-04-10 13:02:25 +03:00
< / p >
{% else %}
< p >
2023-04-13 22:25:20 +03:00
< a href = "mailto:{{ subscription_mailto.address|safe }}" > < code > {{ subscription_mailto.address }}< / code > < / a >
2023-04-10 13:02:25 +03:00
< / p >
{% endif %}
{% else %}
< p > List is not open for subscriptions.< / p >
{% endif %}
2023-04-13 22:25:20 +03:00
{% set unsubscription_mailto=list.unsubscription_mailto() %}
{% if unsubscription_mailto %}
2023-05-09 13:38:41 +03:00
{{ heading(3, "Unsubscribe") }}
2023-04-13 22:25:20 +03:00
{% if unsubscription_mailto.subject %}
2023-04-10 13:02:25 +03:00
< p >
2023-04-13 22:25:20 +03:00
< a href = "mailto:{{ unsubscription_mailto.address|safe }}?subject={{ unsubscription_mailto.subject|safe }}" > < code > {{ unsubscription_mailto.address }}< / code > < / a > with the following subject: < code > {{unsubscription_mailto.subject}}< / code >
2023-04-10 13:02:25 +03:00
< / p >
{% else %}
< p >
2023-04-13 22:25:20 +03:00
< a href = "mailto:{{ unsubscription_mailto.address|safe }}" > < code > {{ unsubscription_mailto.address }}< / code > < / a >
2023-04-10 13:02:25 +03:00
< / p >
{% endif %}
{% endif %}
{% endif %}
2023-05-09 13:38:41 +03:00
{{ heading(3, "Post") }}
2023-04-10 13:02:25 +03:00
{% if post_policy.announce_only %}
< p > List is < em > announce-only< / em > , i.e. you can only subscribe to receive announcements.< / p >
2023-04-13 22:25:20 +03:00
{% elif post_policy.subscription_only %}
< p > List is < em > subscription-only< / em > , i.e. you can only post if you are subscribed.< / p >
2023-04-10 13:02:25 +03:00
< p > If you are subscribed, you can send new posts to:
< a href = "mailto:{{ list.address| safe }}" > < code > {{ list.address }}< / code > < / a >
< / p >
{% elif post_policy.approval_needed or post_policy.no_subscriptions %}
< p > List is open to all posts < em > after approval< / em > by the list owners.< / p >
< p > You can send new posts to:
< a href = "mailto:{{ list.address| safe }}" > < code > {{ list.address }}< / code > < / a >
< / p >
{% else %}
< p > List is not open for submissions.< / p >
{% endif %}
{% endif %}
2023-04-27 19:01:14 +03:00
< / section >
2023-04-10 13:02:25 +03:00
{% endif %}
2023-04-27 19:01:14 +03:00
< section class = "list" aria-hidden = "true" >
2023-05-09 13:38:41 +03:00
{{ heading(3, "Calendar") }}
2023-04-10 13:02:25 +03:00
< div class = "calendar" >
{%- from "calendar.html" import cal %}
{% for date in months %}
2023-05-09 13:38:41 +03:00
{{ cal(date, hists) }}
2023-04-10 13:02:25 +03:00
{% endfor %}
< / div >
2023-04-27 19:01:14 +03:00
< / section >
< section aria-label = "mailing list posts" >
2023-05-09 13:38:41 +03:00
{{ heading(3, "Posts") }}
2023-04-27 19:01:14 +03:00
< div class = "posts entries" role = "list" aria-label = "list of mailing list posts" >
< p > {{ posts | length }} post{{ posts|length|pluralize }}< / p >
2023-04-10 13:02:25 +03:00
{% for post in posts %}
2023-04-27 19:01:14 +03:00
< div class = "entry" role = "listitem" aria-labelledby = "post_link_{{ loop.index }}" >
2023-05-09 13:38:41 +03:00
< span class = "subject" > < a id = "post_link_{{ loop.index }}" href = "{{ list_post_path(list.id, post.message_id) }}" > {{ post.subject }}< / a > < span class = "metadata replies" title = "reply count" > {{ post.replies }} repl{{ post.replies|pluralize("y","ies") }}< / span > < / span >
2023-04-27 19:01:14 +03:00
< span class = "metadata" > < span aria-hidden = "true" > 👤 < / span > < span class = "from" title = "post author" > {{ post.address }}< / span > < span aria-hidden = "true" > 📆 < / span > < span class = "date" title = "post date" > {{ post.datetime }}< / span > < / span >
2023-04-27 21:18:09 +03:00
{% if post.replies > 0 %}< span class = "metadata" > < span aria-hidden = "true" > 💓 < / span > < span class = "last-active" title = "latest thread activity" > {{ post.last_active }}< / span > < / span > {% endif %}
2023-04-27 19:01:14 +03:00
< span class = "metadata" > < span aria-hidden = "true" > 🪪 < / span > < span class = "message-id" title = "e-mail Message-ID" > {{ post.message_id }}< / span > < / span >
< / div >
2023-04-10 13:02:25 +03:00
{% endfor %}
< / div >
2023-04-27 19:01:14 +03:00
< / section >
2023-04-10 13:02:25 +03:00
< / div >
{% include "footer.html" %}