<% if (_.isEmpty(display_notes) && _.isEmpty(deleted_notes)) { %>

No notes have been recorded for this system.

<% } %> <% if (can_change_notes) { %>
Notes are rendered as Markdown.

<% } %> <% _.each(display_notes, function (note) { %>

<%= note.get('user').toHTML() %> added <% if (note.get('deleted')) { %>, a user deleted <% } %>

<%= marked(note.get('text'), {sanitize: true, smartypants: false}) %>
<% if (can_change_notes && !note.get('deleted')) { %> <% } %>
<% }) %> <% if (!_.isEmpty(deleted_notes)) { %>
<%- _.size(deleted_notes) %> deleted <%- _.size(deleted_notes) > 1 ? 'notes are' : 'note is' %> not shown
<% } %>