package templates import "fmt" import "git.jmbit.de/jmb/goipam/utils" templ Index(metaContent utils.MetaContent, counters IndexCounts, err error) { @wrapBase(metaContent, "GoIPAM", err) {
@indexStats(counters)
} } templ indexStats(counters IndexCounts) {

Subnets

{ fmt.Sprint(counters.SubnetCount) }

Addresses

{ fmt.Sprint(counters.AddressCount) }

Devices

{ fmt.Sprint(counters.DeviceCount) }

Locations

{ fmt.Sprint(counters.LocationCount) }

}