diff --git a/js/script.js b/js/script.js index 07ae48c..d82b3d8 100644 --- a/js/script.js +++ b/js/script.js @@ -488,10 +488,7 @@ View.prototype = { if (result === true) { self._editableShares(newShares, []); } - }, - true, - t('quicknotes', 'Shares'), - false + } ); }); @@ -524,10 +521,7 @@ View.prototype = { if (result === true) { self._editableTags(newTags); } - }, - true, - t('quicknotes', 'Tags'), - false + } ); }); @@ -1015,10 +1009,19 @@ new OCA.Search(search, function() { search(''); }); -Handlebars.registerHelper('SW', function(user) { + +/** + * Add Helpers to handlebars + */ + +Handlebars.registerHelper('tSW', function(user) { return t('quicknotes', 'Shared with {user}', {user: user}); }); +Handlebars.registerHelper('tSB', function(user) { + return t('quicknotes', 'Shared by {user}', {user: user}); +}); + /* * Create modules diff --git a/js/templates/notes.handlebars b/js/templates/notes.handlebars index 07d57d9..1de82bf 100644 --- a/js/templates/notes.handlebars +++ b/js/templates/notes.handlebars @@ -15,7 +15,7 @@
{{#if is_shared}} -
+
{{else}} {{#if ispinned}} @@ -34,7 +34,7 @@
{{#each shared_with}} - + {{/each}}
diff --git a/js/templates/shares.handlebars b/js/templates/shares.handlebars index 53a3f5b..77c5a7d 100644 --- a/js/templates/shares.handlebars +++ b/js/templates/shares.handlebars @@ -1,5 +1,5 @@
{{#each shared_with}} - + {{/each}}
\ No newline at end of file