High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Add a "Back" button the public subscription/message page.
Kailash Nadhb163b1305b87
diff --git a/i18n/cs-cz.json b/i18n/cs-cz.jsonindex 9165632f..d600fb63 100644--- a/i18n/cs-cz.json+++ b/i18n/cs-cz.json@@ -111,6 +111,7 @@"forms.title": "Formuláře","globals.buttons.add": "Přidat","globals.buttons.addNew": "Přidat nový",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Zrušit","globals.buttons.clone": "Klonovat","globals.buttons.close": "Zavřít",diff --git a/i18n/de.json b/i18n/de.jsonindex 5983eb0d..ab4630e2 100644--- a/i18n/de.json+++ b/i18n/de.json@@ -111,6 +111,7 @@"forms.title": "Formulare","globals.buttons.add": "Hinzufügen","globals.buttons.addNew": "Neu hinzufügen",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Abbrechen","globals.buttons.clone": "Duplizieren","globals.buttons.close": "Schließen",diff --git a/i18n/en.json b/i18n/en.jsonindex be423859..dad08d75 100644--- a/i18n/en.json+++ b/i18n/en.json@@ -111,6 +111,7 @@"forms.title": "Forms","globals.buttons.add": "Add","globals.buttons.addNew": "Add new",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Cancel","globals.buttons.clone": "Clone","globals.buttons.close": "Close",diff --git a/i18n/es.json b/i18n/es.jsonindex 508f3577..d6ee6026 100644--- a/i18n/es.json+++ b/i18n/es.json@@ -111,6 +111,7 @@"forms.title": "Formularios","globals.buttons.add": "Agregar","globals.buttons.addNew": "Agregar nuevo",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Cancelar","globals.buttons.clone": "Clonar","globals.buttons.close": "Cerrar",diff --git a/i18n/fr.json b/i18n/fr.jsonindex b5e4150f..07f2fa08 100644--- a/i18n/fr.json+++ b/i18n/fr.json@@ -111,6 +111,7 @@"forms.title": "Formulaires","globals.buttons.add": "Ajouter","globals.buttons.addNew": "Ajouter",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Annuler","globals.buttons.clone": "Cloner","globals.buttons.close": "Fermer",diff --git a/i18n/it.json b/i18n/it.jsonindex 12bd1dac..6e18603d 100644--- a/i18n/it.json+++ b/i18n/it.json@@ -111,6 +111,7 @@"forms.title": "Formulari","globals.buttons.add": "Aggiungi","globals.buttons.addNew": "Aggiungi nuovo",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Annulla","globals.buttons.clone": "Clona","globals.buttons.close": "Chiudi",diff --git a/i18n/ml.json b/i18n/ml.jsonindex 13460f8e..0228e7d5 100644--- a/i18n/ml.json+++ b/i18n/ml.json@@ -111,6 +111,7 @@"forms.title": "ഫോമുകൾ","globals.buttons.add": "ചേർക്കുക","globals.buttons.addNew": "പുതിയത് ചേർക്കുക",+ "globals.buttons.back": "Back","globals.buttons.cancel": "ഉപേക്ഷിക്കുക","globals.buttons.clone": "ക്ലോൺ ചെയ്യുക","globals.buttons.close": "അടയ്ക്കുക",diff --git a/i18n/pl.json b/i18n/pl.jsonindex 0a94c0ac..93fa85d0 100644--- a/i18n/pl.json+++ b/i18n/pl.json@@ -111,6 +111,7 @@"forms.title": "Formularze","globals.buttons.add": "Dodanj","globals.buttons.addNew": "Dodaj nowe",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Anuluj","globals.buttons.clone": "Klonuj","globals.buttons.close": "Zamknij",diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 8e0e3ace..f4058d85 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -111,6 +111,7 @@"forms.title": "Formulários","globals.buttons.add": "Adicionar","globals.buttons.addNew": "Adicionar novo",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Cancelar","globals.buttons.clone": "Clonar","globals.buttons.close": "Fechar",diff --git a/i18n/pt.json b/i18n/pt.jsonindex bec0dcd6..20d950e9 100644--- a/i18n/pt.json+++ b/i18n/pt.json@@ -111,6 +111,7 @@"forms.title": "Formulários","globals.buttons.add": "Adicionar","globals.buttons.addNew": "Adicionar novo",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Cancelar","globals.buttons.clone": "Duplicar","globals.buttons.close": "Fechar",diff --git a/i18n/ro.json b/i18n/ro.jsonindex eb061b2b..555bce7b 100644--- a/i18n/ro.json+++ b/i18n/ro.json@@ -111,6 +111,7 @@"forms.title": "Formulare","globals.buttons.add": "Adaugă","globals.buttons.addNew": "Adaugă nou",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Anulează","globals.buttons.clone": "Clonează","globals.buttons.close": "Închide",diff --git a/i18n/ru.json b/i18n/ru.jsonindex 539fa85f..838b4d34 100644--- a/i18n/ru.json+++ b/i18n/ru.json@@ -111,6 +111,7 @@"forms.title": "Формы","globals.buttons.add": "Добавить","globals.buttons.addNew": "Добавить",+ "globals.buttons.back": "Back","globals.buttons.cancel": "Отменить","globals.buttons.clone": "Клонировать","globals.buttons.close": "Закрыть",diff --git a/i18n/tr.json b/i18n/tr.jsonindex 6b0c5072..88a9193f 100644--- a/i18n/tr.json+++ b/i18n/tr.json@@ -111,6 +111,7 @@"forms.title": "Formlar","globals.buttons.add": "Ekle","globals.buttons.addNew": "Ekle yeni",+ "globals.buttons.back": "Back","globals.buttons.cancel": "İptal","globals.buttons.clone": "Klonla","globals.buttons.close": "Kapat",diff --git a/static/public/static/style.css b/static/public/static/style.cssindex 2b77078d..d0badac0 100644--- a/static/public/static/style.css+++ b/static/public/static/style.css@@ -116,6 +116,10 @@ input[type="text"], input[type="email"], select {display: none;}+#btn-back {+ display: none;+}+footer.container {margin-top: 15px;text-align: center;diff --git a/static/public/templates/message.html b/static/public/templates/message.htmlindex ae09ae25..8631904d 100644--- a/static/public/templates/message.html+++ b/static/public/templates/message.html@@ -6,5 +6,22 @@{{ .Data.Message }}</div>+ <p>+ <a href="" class="button" id="btn-back">{{ L.T "globals.buttons.back" }}</a>+ </p>++ <script>+ (function() {+ // If there's page history to go back to, show the back button.+ if(history && history.length >= 2) {+ var btn = document.getElementById("btn-back");+ btn.style.display = 'inline-block';+ btn.onclick = function(e) {+ history.go(history.length > 2 ? -2 : -1);+ e.preventDefault();+ };+ }+ })();+ </script>{{ template "footer" .}}{{ end }}