summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 09:54:14 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 09:54:14 -0800
commit4e5f54cf8f64b849bf2fbdd610012ebeb7786091 (patch)
tree6fd9394a1b5a4733a7d20067b8c588ee5fcd8fc4 /system/admin/handlers.go
parent40b5cfe2289b179c511a6c73757bb64228f0bc82 (diff)
removing ContentName() from editor.Editble and adding String() to content.Identifiable so embedded Items can manage display names by default, but easily overridden
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index 247cca7..7ea018c 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -1071,7 +1071,7 @@ func adminPostListItem(e editor.Editable, typeName, status string) []byte {
post := `
<li class="col s12">
- <a href="/admin/edit?type=` + typeName + `&status=` + strings.TrimPrefix(status, "_") + `&id=` + cid + `">` + e.ContentName() + `</a>
+ <a href="/admin/edit?type=` + typeName + `&status=` + strings.TrimPrefix(status, "_") + `&id=` + cid + `">` + i.String() + `</a>
<span class="post-detail">Updated: ` + updatedTime + `</span>
<span class="publish-date right">` + publishTime + `</span>