{# Write controls for the notes on a commit. Expects `notes`, `can_write_notes`, `notes_merged`, `detail.oid`, and the csrf token. Deliberately separate from git_notes_panel.html, which is shared with the file view and stays read-only: P2 writes notes on commits, and a form that appeared beside a blob note would be offering something the routes do not accept. #} {% if can_write_notes %} {% if let Some(token) = csrf_token %}
Somebody edited this note while you were writing. Both versions were kept, so what is below is not exactly what you typed.
{% endif %} {# A note in a namespace the write routes refuse gets no form. makenot.work writes refs/notes/mnw/*, and offering an edit box that saves to a 422 is worse than offering nothing. #} {% for note in notes %} {% if !note.read_only %} {% endif %} {% endfor %}