15 lines
500 B
Plaintext
Raw Normal View History

2018-04-16 13:21:42 +00:00
component UserRegistrations(total int, years []int, yearInfo map[int]utils.YearRegistrations)
2018-04-16 13:17:23 +00:00
AdminTabs
2018-04-16 13:21:42 +00:00
h1.mountable= fmt.Sprintf("User registrations (%d)", total)
2018-04-16 13:17:23 +00:00
for _, year := range years
h3.mountable= year
h4.mountable= strconv.Itoa(yearInfo[year].Total) + " registrations"
2018-10-27 01:11:52 +00:00
.feature-cards
for month := 1; month <= 12; month++
.feature-card.mountable
.feature-card-title= time.Month(month).String()
.feature-card-text= strconv.Itoa(yearInfo[year].Months[month])
hr