{% from "_macros.html" import icon %} {# The share panel on a detail page. Sharing grants *reading*. Two people editing one note with no history and no merge is worse than the inconvenience of copying it, so there is no "can edit" here and the copy is deliberate rather than missing. Only the owner sees this at all: someone a thing was shared with cannot share it onward, which keeps "who can see this" answerable by asking one person. #} {% if is_owner and can_share %}

Shared with {% if shared_users or shared_groups %} {{ shared_users|length + shared_groups|length }} {% else %} nobody {% endif %}

They will be able to read this, and their models will find it. They cannot change it or share it on.

{% if groups %}
{% for group in groups %} {% endfor %}
{% endif %} {% if people %}
{% for person in people %} {% endfor %}
{% endif %} {% if not groups and not people %}

There is nobody else on this instance yet.

{% endif %}
{% elif not is_owner %}
{{ icon("users", "alert__icon") }} Shared with you. You can read this but not change it.
{% endif %}