mirror of
https://github.com/zadam/trilium.git
synced 2025-01-22 23:20:23 +08:00
fix display of children notes in an empty note, closes #2536
This commit is contained in:
parent
0e9d76890b
commit
f2732bcab7
1 changed files with 12 additions and 14 deletions
|
@ -40,10 +40,7 @@
|
|||
<div id="noteClippedFrom">This note was originally clipped from <a href="<%= note.getLabelValue("pageUrl") %>"><%= note.getLabelValue("pageUrl") %></a></div>
|
||||
<% } %>
|
||||
|
||||
<% if (note.type === 'book') { %>
|
||||
<% } else if (isEmpty) { %>
|
||||
<p>This note has no content.</p>
|
||||
<% } else { %>
|
||||
<% if (!isEmpty) { %>
|
||||
<div id="content" class="type-<%= note.type %><% if (note.type === 'text') { %> ck-content<% } %>">
|
||||
<%- content %>
|
||||
</div>
|
||||
|
@ -52,8 +49,10 @@
|
|||
<% if (note.hasChildren()) { %>
|
||||
<nav id="childLinks" class="<% if (isEmpty) { %>grid<% } else { %>list<% } %>">
|
||||
<% if (!isEmpty) { %>
|
||||
<div id="noteClippedFrom">
|
||||
<hr>
|
||||
<span>Child notes: </span>
|
||||
<% } %>
|
||||
|
||||
<ul>
|
||||
<% for (const childNote of note.getChildNotes()) { %>
|
||||
<li>
|
||||
|
@ -62,10 +61,9 @@
|
|||
</li>
|
||||
<% } %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
</nav>
|
||||
<% } else if (isEmpty) { %>
|
||||
<p>This note has no content.</p>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue