From f276f4d61d9ef9c74929fcaa9c490668c4b7e6dd Mon Sep 17 00:00:00 2001 From: Zeni Kim Date: Thu, 17 Apr 2025 01:49:43 -0500 Subject: [PATCH] add element paginator --- template/components/content_pagination.go | 9 +++++++++ template/components/content_pagination.html | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 template/components/content_pagination.go create mode 100644 template/components/content_pagination.html diff --git a/template/components/content_pagination.go b/template/components/content_pagination.go new file mode 100644 index 0000000..87434a2 --- /dev/null +++ b/template/components/content_pagination.go @@ -0,0 +1,9 @@ +package components + +type ContentPagination struct { + PageStartRecord int + PageEndRecord int + TotalRecords int + PrevLink string + NextLink string +} diff --git a/template/components/content_pagination.html b/template/components/content_pagination.html new file mode 100644 index 0000000..a51e09d --- /dev/null +++ b/template/components/content_pagination.html @@ -0,0 +1,10 @@ +{{define "content_pagination"}} +
+ +
+{{end}} \ No newline at end of file