added shareCss relation and shareHiddenFromTree label

This commit is contained in:
zadam
2021-12-22 09:36:38 +01:00
parent 1180be75d1
commit bcef8579ce
4 changed files with 12 additions and 5 deletions

View File

@@ -8,6 +8,9 @@
<% if (note.type === 'text' || note.type === 'book') { %>
<link href="../libraries/ckeditor/ckeditor-content.css" rel="stylesheet">
<% } %>
<% for (const cssRelation of note.getRelations("shareCss")) { %>
<link href="api/notes/<%= cssRelation.value %>/download" rel="stylesheet">
<% } %>
<title><%= note.title %></title>
</head>
<body>

View File

@@ -9,9 +9,11 @@
<% if (note.hasChildren()) { %>
<ul>
<% note.getChildNotes().forEach(function (childNote) { %>
<% if (!childNote.hasLabel("shareHiddenFromTree")) { %>
<li>
<%- include('tree_item', {note: childNote}) %>
</li>
<% } %>
<% }) %>
</ul>
<% } %>