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 ++++++++- system/admin/static/dashboard/css/admin.css | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'system') 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 + `
  • ` diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css index d678fdc..89fb047 100644 --- a/system/admin/static/dashboard/css/admin.css +++ b/system/admin/static/dashboard/css/admin.css @@ -164,6 +164,18 @@ span.post-detail { font-style: italic; } +.quick-delete-post { + display: none; +} + +li:hover .quick-delete-post { + display: block; +} + +.quick-delete-post i { + cursor: pointer; +} + /* OVERRIDE Bootstrap + Materialize conflicts */ .iso-texteditor.input-field label { -- cgit v1.2.3