From fdd9b8fd2bf1688187dda2cb801232c744fe26e0 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 19 Oct 2020 06:51:23 +0000 Subject: Add setting for default format --- templates/postform.tmpl | 5 ++++- templates/settings.tmpl | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/postform.tmpl b/templates/postform.tmpl index ac77486..b38cb9d 100644 --- a/templates/postform.tmpl +++ b/templates/postform.tmpl @@ -16,8 +16,11 @@
{{if gt (len .Formats) 0}} + {{$defFormat := .DefaultFormat}} {{end}} diff --git a/templates/settings.tmpl b/templates/settings.tmpl index 67386a4..972e1a2 100644 --- a/templates/settings.tmpl +++ b/templates/settings.tmpl @@ -4,6 +4,15 @@
+
+ + {{$defFormat := .Settings.DefaultFormat}} + +