Files
Trilium/src/views/share/tree_item.ejs

18 lines
438 B
Plaintext
Raw Normal View History

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>
<% 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>
<% } %>