Added statistics

This commit is contained in:
2017-07-13 02:32:36 +02:00
parent df4b367c61
commit 33d6202041
6 changed files with 97 additions and 0 deletions

15
pages/profile/stats.pixy Normal file
View File

@ -0,0 +1,15 @@
component ProfileStats(stats *utils.UserStats, viewUser *arn.User, user *arn.User, uri string)
ProfileHeader(viewUser, user, uri)
.widgets
each pie in stats.PieCharts
.widget
h3.widget-title
Icon("pie-chart")
span= pie.Title
PieChart(pie.Slices)
.footer.text-center
span You spent
span= int(stats.AnimeWatchingTime / time.Hour / 24)
span days watching anime.