philomena/lib/philomena_web/templates/profile/_statistics.html.slime
Jordan R AW 217106e5ae
Add the timeline for the user statistics page (#168)
Currently, the user statistics is hardcoded to display only
stats from the last 90 days. This isn't clear from the
display. We can easily fit this content in the existing
chart header.
2022-09-25 21:25:36 -04:00

28 lines
1.5 KiB
Text

.block
.block__header: span.block__header__title Statistics (Last 90 Days)
.block__content
table.table.table--stats.center
tr
td.table--stats__parameter Uploads
td.table--stats__value = number_with_delimiter(@user.uploads_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.uploads)
tr
td.table--stats__parameter Favorites
td.table--stats__value = number_with_delimiter(@user.images_favourited_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.images_favourited)
tr
td.table--stats__parameter Comments
td.table--stats__value = number_with_delimiter(@user.comments_posted_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.comments_posted)
tr
td.table--stats__parameter Votes
td.table--stats__value = number_with_delimiter(@user.votes_cast_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.votes_cast)
tr
td.table--stats__parameter Metadata Updates
td.table--stats__value = number_with_delimiter(@user.metadata_updates_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.metadata_updates)
tr
td.table--stats__parameter Forum Posts
td.table--stats__value = number_with_delimiter(@user.forum_posts_count)
td.table--stats__sparkline: .sparkline = sparkline_data(@statistics.forum_posts)