Small tweaks

This commit is contained in:
Ashley Allen 2018-07-27 18:10:18 +01:00
parent f94a5d3d8b
commit 8891ea4369

View File

@ -1,9 +1,9 @@
component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64, userCompleted int) component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64, userCompleted int)
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre) h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
.average-score-total-completed if user != nil
if user != nil .average-score-total-completed
p= fmt.Sprintf("Average Score: %.1f | Total Completed: %d", userScore, userCompleted) p= fmt.Sprintf("Average rating: %." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f | Total completed: %d", userScore, userCompleted)
.corner-buttons-hide-on-mobile .corner-buttons-hide-on-mobile
if user != nil if user != nil