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