Show only float with 1 decimal for consistency.

This commit is contained in:
Jarmo Riikonen
2018-07-03 13:13:38 +03:00
parent 524c39b283
commit 1e5f654928
2 changed files with 20 additions and 13 deletions

View File

@ -1,7 +1,8 @@
component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore string)
component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64)
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
h2()= userScore
if user != nil
h2= fmt.Sprintf("%.1f", userScore)
.corner-buttons-hide-on-mobile
if user != nil
button.action(data-trigger="click", data-action="hideAddedAnime", title="Hide anime in my collection")