Better stats

This commit is contained in:
Eduard Urbach 2017-07-13 05:47:17 +02:00
parent df98beacb4
commit 84e246d31f

View File

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