Add UI for displaying the user's average score for a genre
This commit is contained in:
parent
f0625aabe5
commit
6a83042953
@ -1,8 +1,9 @@
|
||||
component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64)
|
||||
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
|
||||
|
||||
//- if user != nil
|
||||
//- h2= fmt.Sprintf("%.1f", userScore)
|
||||
.average-score
|
||||
if user != nil
|
||||
p= fmt.Sprintf("Average Score: %.1f", userScore)
|
||||
|
||||
.corner-buttons-hide-on-mobile
|
||||
if user != nil
|
||||
|
2
pages/genre/genre.scarlet
Normal file
2
pages/genre/genre.scarlet
Normal file
@ -0,0 +1,2 @@
|
||||
.average-score
|
||||
text-align center
|
Loading…
Reference in New Issue
Block a user