From faff1ab5271238b845e46d2c62235ed898117a48 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Fri, 3 Jun 2022 22:59:44 +0300 Subject: [PATCH] + Deletion Confirmation --- lib/routes/routes_admin.go | 4 ++++ templates/pages/admin_view.html | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/routes/routes_admin.go b/lib/routes/routes_admin.go index c6eb2ce..5162728 100644 --- a/lib/routes/routes_admin.go +++ b/lib/routes/routes_admin.go @@ -63,6 +63,10 @@ func AdminRoutes(router *gin.RouterGroup) { }) + router.GET("/delete/:padname", func(ctx *gin.Context) { + + }) + // Admin view route router.GET("/view", func(ctx *gin.Context) { diff --git a/templates/pages/admin_view.html b/templates/pages/admin_view.html index 5da8e85..9a092e5 100644 --- a/templates/pages/admin_view.html +++ b/templates/pages/admin_view.html @@ -58,9 +58,9 @@ {{ $element.LastModified }}
- +
@@ -75,4 +75,14 @@ {{ template "inc/theme-toggle.html" .}} + + {{ template "inc/footer.html" .}} \ No newline at end of file