From c6d7b999740c27400875075395ed4cc7eec15d82 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Tue, 16 Jun 2020 16:46:10 -0300 Subject: [PATCH] Fix and update translations --- css/style.scss | 5 +++++ js/qn-dialogs.js | 2 +- js/script.js | 4 ++++ js/templates/navigation.handlebars | 2 +- js/templates/notes.handlebars | 2 +- js/templates/shares.handlebars | 2 +- templates/fake.php | 5 +++++ 7 files changed, 18 insertions(+), 4 deletions(-) diff --git a/css/style.scss b/css/style.scss index 60abd62..7e5f89a 100644 --- a/css/style.scss +++ b/css/style.scss @@ -273,6 +273,7 @@ div[contenteditable="true"] { /* Restore defaults select2 rules */ + .select2-container-multi .select2-choices .select2-search-choice { @@ -297,6 +298,10 @@ div[contenteditable="true"] { z-index: 10000; } +div.select2-container { + width: 100%; +} + /* Modal Content */ .modal-content { diff --git a/js/qn-dialogs.js b/js/qn-dialogs.js index 3470b48..c992f39 100644 --- a/js/qn-dialogs.js +++ b/js/qn-dialogs.js @@ -135,7 +135,7 @@ const QnDialogs = { var $dlg = $tmpl.octemplate({ dialog_name: dialogName, title: t('quicknotes', 'Share note'), - message: t('quicknotes', 'Select the users to share'), + message: t('quicknotes', 'Select the users to share. By default you only share the note. Attachments should be shared from files so they can view it.'), type: 'none' }); diff --git a/js/script.js b/js/script.js index 057865a..07ae48c 100644 --- a/js/script.js +++ b/js/script.js @@ -1015,6 +1015,10 @@ new OCA.Search(search, function() { search(''); }); +Handlebars.registerHelper('SW', function(user) { + return t('quicknotes', 'Shared with {user}', {user: user}); +}); + /* * Create modules diff --git a/js/templates/navigation.handlebars b/js/templates/navigation.handlebars index 5928b1c..6442545 100644 --- a/js/templates/navigation.handlebars +++ b/js/templates/navigation.handlebars @@ -10,7 +10,7 @@
  • - {{t "quicknotes" "Shares" }} + {{t "quicknotes" "Shared" }}