Added statistics
This commit is contained in:
15
pages/profile/stats.pixy
Normal file
15
pages/profile/stats.pixy
Normal 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.
|
Reference in New Issue
Block a user