From f8a734b9c0fc844fb1af94a4c0c02c548c3e6f63 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 18 Oct 2016 23:15:07 -0700 Subject: adding delete button [quick-delete-post] --- system/admin/handlers.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'system/admin/handlers.go') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index ecb96b4..1dea5c1 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -431,10 +431,17 @@ func adminPostListItem(p editor.Editable, t string) []byte { updatedTime := upTime.Format("01/02/06 03:04 PM") publishTime := tsTime.Format("01/02/06") + cid := fmt.Sprintf("%d", p.ContentID()) + post := `
  • - ` + p.ContentName() + ` + ` + p.ContentName() + ` Updated: ` + updatedTime + ` +
    + delete + + +
    ` + publishTime + `
  • ` -- cgit v1.2.3