summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--management/editor/editor.go4
-rw-r--r--management/editor/elements.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 2c51d5d..dc6f181 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -147,13 +147,13 @@ func addPostDefaultFieldsToEditorView(p Editable, e *Editor) {
}),
},
Field{
- View: Input("Timestamp", p, map[string]string{
+ View: Timestamp("Timestamp", p, map[string]string{
"type": "hidden",
"class": "timestamp __ponzu",
}),
},
Field{
- View: Input("Updated", p, map[string]string{
+ View: Timestamp("Updated", p, map[string]string{
"type": "hidden",
"class": "updated __ponzu",
}),
diff --git a/management/editor/elements.go b/management/editor/elements.go
index b06049d..dd04070 100644
--- a/management/editor/elements.go
+++ b/management/editor/elements.go
@@ -37,11 +37,11 @@ func Textarea(fieldName string, p interface{}, attrs map[string]string) []byte {
return domElement(e)
}
-// Time returns the []byte of an <input> HTML element with a label.
+// Timestamp returns the []byte of an <input> HTML element with a label.
// IMPORTANT:
// The `fieldName` argument will cause a panic if it is not exactly the string
// form of the struct field that this editor input is representing
-func Time(fieldName string, p interface{}, attrs map[string]string) []byte {
+func Timestamp(fieldName string, p interface{}, attrs map[string]string) []byte {
var data string
val := valueFromStructField(fieldName, p)
if val.Int() == 0 {