{% 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 %}
They will be able to read this, and their models will find it. They cannot
change it or share it on.
There is nobody else on this instance yet.
Shared with
{% if shared_users or shared_groups %}
{{ shared_users|length + shared_groups|length }}
{% else %}
nobody
{% endif %}