From b8bbad7f4cf72bc642fa980e45f724fe28772e63 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Mon, 1 Jun 2020 18:04:59 -0300 Subject: [PATCH] Translate Delete and Pin note. Part of issue #32 --- css/style.css | 2 +- js/script.js | 4 ++++ js/templates/note-item.handlebars | 4 ++-- js/templates/notes.handlebars | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/css/style.css b/css/style.css index 7b0fb1f..1390f00 100644 --- a/css/style.css +++ b/css/style.css @@ -90,7 +90,7 @@ .icon-header-note { cursor: pointer; float: right; - margin: 2px; + margin-left: 2px; padding: 12px; background-color: rgba(0,0,0,0.08); opacity: 0.7; diff --git a/js/script.js b/js/script.js index 425c7d8..c42b2e5 100644 --- a/js/script.js +++ b/js/script.js @@ -13,6 +13,10 @@ $(document).ready(function () { +var translations = { + pinNote: t('quicknotes', 'Pin note'), +}; + // this notes object holds all our notes var Notes = function (baseUrl) { this._baseUrl = baseUrl; diff --git a/js/templates/note-item.handlebars b/js/templates/note-item.handlebars index 71ae708..ef1091c 100644 --- a/js/templates/note-item.handlebars +++ b/js/templates/note-item.handlebars @@ -12,8 +12,8 @@ {{else}}
-
-
+
+