2017-10-20 15:24:16 +00:00
|
|
|
component Rating(value float64, user *arn.User)
|
2017-10-20 16:26:23 +00:00
|
|
|
if user == nil
|
|
|
|
.anime-rating= fmt.Sprintf("%.1f", value)
|
|
|
|
else
|
|
|
|
.anime-rating= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)
|