summaryrefslogtreecommitdiff
path: root/management/editor/editor.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-01-20 00:51:18 -0800
committerGitHub <noreply@github.com>2017-01-20 00:51:18 -0800
commit51710940ef4d09e37d20397b5676c4d37dc182ad (patch)
treefacf795b91c60c9458c873d8d2c3c46e569e77e0 /management/editor/editor.go
parentce7a06a89d1ff330e7ef9dcae4ef76ddc84c3dc4 (diff)
parent13e3226f8095d27c4d70756560a7575837d80495 (diff)
Merge pull request #36 from ponzu-cms/ponzu-dev
[core] code clean-up
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r--management/editor/editor.go6
1 files changed, 3 insertions, 3 deletions
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",