summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-26 22:48:48 -0800
committerSteve Manuel <nilslice@gmail.com>2016-11-26 22:48:48 -0800
commit860472da96a1b3dc3ce086e8508aac7b4940ade6 (patch)
treeb1d538cd347381883bf21c9be8dae940713f63d1
parent7d20672846065c9323d71be71a778d0bfd86248b (diff)
fixing implementation of display name for content type
-rw-r--r--cmd/ponzu/contentType.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ponzu/contentType.tmpl b/cmd/ponzu/contentType.tmpl
index a631fe7..0cc8a3c 100644
--- a/cmd/ponzu/contentType.tmpl
+++ b/cmd/ponzu/contentType.tmpl
@@ -48,7 +48,7 @@ func init() {
// ContentName is required to set the display name for a piece of content in the editor
// Partially implements editor.Editable
-func ({{ .Initial }} *{{ .Name }}) ContentName() string { return {{ .Name }}-{{ .Initial }}.ItemID() }
+func ({{ .Initial }} *{{ .Name }}) ContentName() string { return fmt.Sprintf("{{ .Name }} - ID: %d", {{ .Initial }}.ItemID()) }
// Editor is a buffer of bytes for the Form function to write input views
// partially implements editor.Editable