Formatting post per user fractions

closes #8227
This commit is contained in:
Thorsten Claus 2021-03-24 20:19:08 +01:00 committed by Jonne Haß
parent a98fdc8079
commit a420ba2cfc
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@
* Delete a user's invitation code during account deletion [#8202](https://github.com/diaspora/diaspora/pull/8202)
* Bump mimemagic [#8231](https://github.com/diaspora/diaspora/pull/8231)
* Removed support for defunct Uni Heidelberg OSM tile server, Mapbox is now required if you want to show maps [#8215](https://github.com/diaspora/diaspora/pull/8215)
* Render only two fractional digits in the posts per user/day admin statistics [#8227](https://github.com/diaspora/diaspora/pull/8227)
## Features
* Support and recommend TOML as configuration format [#8132](https://github.com/diaspora/diaspora/pull/8132)

View file

@ -38,8 +38,8 @@
.row
%p.col-md-12.alert.alert-info.text-center{role: "alert"}
!= t("admins.stats.current_segment",
post_yest: content_tag(:strong, posts[:yesterday] / user_count),
post_day: content_tag(:strong, posts[:day_before] / user_count))
post_yest: content_tag(:strong, "%0.2f" % (posts[:yesterday] / user_count)),
post_day: content_tag(:strong, "%0.2f" % (posts[:day_before] / user_count)))
.row
.col-md-12