{# Notes on the object a page is showing. Expects `notes: Vec`. Shared by the commit page (notes on the commit) and the file view (notes on the blob), so the two cannot drift. #} {% if !notes.is_empty() %}
{% for note in notes %}
{{ note.namespace }} {% if note.read_only %} {# Says where it came from, so a note nobody on the repo wrote does not read as one of theirs they have forgotten. #} written by makenot.work {% endif %} {% if let Some(a) = note.attribution %} {% if a.exact %} {{ a.by }} · {{ a.when }} {% else %} edited since {{ a.short_commit }} · {{ a.when }} {% endif %} {% endif %}
{{ note.html|safe }}
{% endfor %}
{% endif %}