2021-10-19 22:48:38 +02:00
|
|
|
<p>
|
|
|
|
|
<% if (activeNote.noteId === note.noteId) { %>
|
|
|
|
|
<strong><%= note.title %></strong>
|
|
|
|
|
<% } else { %>
|
2021-12-27 20:48:14 +01:00
|
|
|
<a class="type-<%= note.type %>" href="./<%= note.shareId %>"><%= note.title %></a>
|
2021-10-19 22:48:38 +02:00
|
|
|
<% } %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<% if (note.hasChildren()) { %>
|
|
|
|
|
<ul>
|
2022-03-22 23:17:47 +01:00
|
|
|
<% note.getVisibleChildNotes().forEach(function (childNote) { %>
|
2021-10-19 22:48:38 +02:00
|
|
|
<li>
|
2021-12-22 09:10:38 +01:00
|
|
|
<%- include('tree_item', {note: childNote}) %>
|
2021-10-19 22:48:38 +02:00
|
|
|
</li>
|
|
|
|
|
<% }) %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% } %>
|