30 lines
858 B
Plaintext
Raw Normal View History

2017-10-28 01:53:12 +00:00
component Statistics(pieCharts []*arn.PieChart)
2017-07-07 10:52:24 +00:00
h1.page-title Statistics
2017-07-07 00:07:34 +00:00
2017-07-07 08:57:48 +00:00
StatisticsHeader
2017-07-07 11:33:31 +00:00
.statistics
2017-11-03 11:02:13 +00:00
each pie in pieCharts
.widget
h3.widget-title= pie.Title
PieChart(pie.Slices)
2017-07-07 11:33:31 +00:00
2019-09-01 07:39:17 +00:00
footer.footer
2017-07-07 11:34:43 +00:00
p Data is collected for statistical purposes only. We respect user privacy and we will never display or sell critical data to 3rd party services.
2017-07-07 00:07:34 +00:00
2017-07-07 08:57:48 +00:00
component StatisticsHeader
2017-07-22 13:04:54 +00:00
.tabs
a.tab.action(href="/statistics", data-action="diff", data-trigger="click")
2017-07-07 08:57:48 +00:00
Icon("user")
2017-07-19 16:23:53 +00:00
span.tab-text Users
2017-07-07 08:57:48 +00:00
2017-07-22 13:04:54 +00:00
a.tab.action(href="/statistics/anime", data-action="diff", data-trigger="click")
2017-07-07 08:57:48 +00:00
Icon("tv")
2017-07-19 16:23:53 +00:00
span.tab-text Anime
2017-07-07 08:57:48 +00:00
2017-07-07 10:10:27 +00:00
component PieChart(slices []*arn.PieChartSlice)
2017-07-07 01:22:29 +00:00
svg.pie-chart(viewBox="-1.1 -1.1 2.2 2.2")
2017-07-07 00:37:43 +00:00
each slice in slices
2017-11-29 00:19:27 +00:00
g.slice
2017-07-07 00:37:43 +00:00
title= slice.Title
2017-11-29 00:19:27 +00:00
path(d=utils.SVGSlicePath(slice.From, slice.To), fill=slice.Color)