mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
In the list of notes it shows 'Note #' when the title is empty
This commit is contained in:
@@ -1231,6 +1231,9 @@ Handlebars.registerHelper('tSB', function(user) {
|
|||||||
return t('quicknotes', 'Shared by {user}', {user: user});
|
return t('quicknotes', 'Shared by {user}', {user: user});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Handlebars.registerHelper('tNN', function(number) {
|
||||||
|
return t('quicknotes', 'Note {number}', {number: number});
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create modules
|
* Create modules
|
||||||
|
|||||||
@@ -49,7 +49,11 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{{#each notes}}
|
{{#each notes}}
|
||||||
<li class="nav-note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
|
<li class="nav-note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
|
||||||
<a href="#">{{{ title }}}</a>
|
{{#if title}}
|
||||||
|
<a href="#">{{{ title }}}</a>
|
||||||
|
{{else}}
|
||||||
|
<a href="#">{{tNN id}}</a>
|
||||||
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user