summaryrefslogtreecommitdiff
path: root/management/editor
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2017-01-20 00:17:59 -0800
committerGitHub <noreply@github.com>2017-01-20 00:17:59 -0800
commit76c64e718af8953fdc473c77849daba118dac5ac (patch)
treebafdcf068c6260d827934dcf5e56b219618e39dd /management/editor
parentce7a06a89d1ff330e7ef9dcae4ef76ddc84c3dc4 (diff)
parent7c2b1ffadabca126e6fdc2b211801109b8b93d6b (diff)
Merge pull request #35 from crackcomm/master
Just a little cleaner code
Diffstat (limited to 'management/editor')
-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",