mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-01-17 03:07:16 +01:00
Move to precompiled handlebars templates.
In Nextcloud 15 the default Content Security Policy disallows unsafe eval expressions, so Handlebars templates can no longer be compiled at runtime. Fix issue #18
This commit is contained in:
33
js/templates/navigation.handlebars
Normal file
33
js/templates/navigation.handlebars
Normal file
@@ -0,0 +1,33 @@
|
||||
<div id="new-note-fixed">
|
||||
<div>
|
||||
<button type="button" id="new-note" class="icon-add">{{newNoteTxt}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<li id="all-notes">
|
||||
<a href="#" class="icon-home svg">
|
||||
{{allNotesTxt}}
|
||||
</a>
|
||||
</li>
|
||||
<li id="colors-folder" class="collapsible open">
|
||||
<button class="collapse"></button>
|
||||
<a href="#" class="icon-search svg">{{colorsTxt}}</a>
|
||||
<ul>
|
||||
<li style="display: flex; justify-content: center;">
|
||||
<button class="circle-toolbar icon-checkmark any-color"></button>
|
||||
{{#each colors}}
|
||||
<button class="circle-toolbar" style="background-color: {{color}} "></button>
|
||||
{{/each}}
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="notes-folder" class="collapsible open">
|
||||
<button class="collapse"></button>
|
||||
<a href="#" class="icon-folder svg">{{notesTxt}}</a>
|
||||
<ul>
|
||||
{{#each notes}}
|
||||
<li class="note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
|
||||
<a href="#">{{{ title }}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</li>
|
||||
Reference in New Issue
Block a user