From 7c2b1ffadabca126e6fdc2b211801109b8b93d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kurowski?= Date: Fri, 20 Jan 2017 08:23:54 +0100 Subject: cleaner code --- management/editor/editor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'management/editor') diff --git a/management/editor/editor.go b/management/editor/editor.go index a9a8c82..7bc5f35 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -234,7 +234,7 @@ func addFieldToEditorView(e *Editor, f Field) error { func addPostDefaultFieldsToEditorView(p Editable, e *Editor) error { defaults := []Field{ - Field{ + { View: Input("Slug", p, map[string]string{ "label": "URL Slug", "type": "text", @@ -242,13 +242,13 @@ func addPostDefaultFieldsToEditorView(p Editable, e *Editor) error { "placeholder": "Will be set automatically", }), }, - Field{ + { View: Timestamp("Timestamp", p, map[string]string{ "type": "hidden", "class": "timestamp __ponzu", }), }, - Field{ + { View: Timestamp("Updated", p, map[string]string{ "type": "hidden", "class": "updated __ponzu", -- cgit v1.2.3