mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +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:
1 parent
d1d1f1a2f6
commit
6bac24030d
10 files changed
+105
-97
No files matched your search
@@ -1,16 +1 @@
|
||||
<script id="content-tpl" type="text/x-handlebars-template">
|
||||
{{#if notes}}
|
||||
<div class="notes-grid">
|
||||
{{#each notes}}
|
||||
<?php print_unescaped($this->inc('part.note')); ?>
|
||||
{{/each}}
|
||||
</div>
|
||||
<?php print_unescaped($this->inc('part.note-modal-editable')); ?>
|
||||
{{else}}
|
||||
<div class="emptycontent">
|
||||
<div class="icon-folder"></div>
|
||||
<?php p($l->t('Nothing here. Take your quick notes.')); ?>
|
||||
</div>
|
||||
{{/if}}
|
||||
</script>
|
||||
<div id="div-content"></div>
|
||||
Reference in new issue
Block a user