trilium/src/views/share/tree_item.ejs
2021-12-22 09:10:38 +01:00

18 lines
400 B
Plaintext

<p>
<% if (activeNote.noteId === note.noteId) { %>
<strong><%= note.title %></strong>
<% } else { %>
<a href="./<%= note.noteId %>"><%= note.title %></a>
<% } %>
</p>
<% if (note.hasChildren()) { %>
<ul>
<% note.getChildNotes().forEach(function (childNote) { %>
<li>
<%- include('tree_item', {note: childNote}) %>
</li>
<% }) %>
</ul>
<% } %>