package pages import ( "fmt" "reichard.io/antholume/database" "reichard.io/antholume/ngtemplates/common" "reichard.io/antholume/ngtemplates/components" ) templ Documents(settings common.Settings, documents []database.GetDocumentsWithStatsRow, nextPage, previousPage, totalPages, pageLimit int64) { @layout(settings, "Activity") {
@components.Search2SVG("size-4")
@components.Button("Search", components.ButtonVariantSecondary)
for _, doc := range documents { @components.DocumentCard(doc) }
if previousPage > 0 { } if nextPage <= totalPages { }
} }