mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37: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:
@@ -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