mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
217106e5ae
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.
28 lines
1.5 KiB
Text
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)
|