package views import ( "fmt" "github.com/ditatompel/xmr-remote-nodes/internal/paging" ) var availablePages = []int{5, 10, 20, 50, 100} templ DtRowPerPage(url, hxTarget string, rowsPerPage int, q interface{}) {
} templ DtRowCount(currentPage, rowsPerPage, totalRows int) {

if totalRows <= 0 { No entries found } else { { fmt.Sprintf("%d", (rowsPerPage * currentPage) - rowsPerPage + 1) } if rowsPerPage * currentPage > totalRows { - { fmt.Sprintf("%d", totalRows) } } else { - { fmt.Sprintf("%d", rowsPerPage * currentPage) } } / { fmt.Sprintf("%d", totalRows) } }

} templ DtPagination(url, hxTarget string, q interface{}, p paging.Pagination) {
}