diff --git a/pages/anime/anime.pixy b/pages/anime/anime.pixy index d0c51204..974f6968 100644 --- a/pages/anime/anime.pixy +++ b/pages/anime/anime.pixy @@ -44,11 +44,11 @@ component Anime(anime *arn.Anime, friends []*arn.User, listItems map[*arn.User]* if friend.Nick != "" if friend.IsActive() .mountable - CustomAvatar(friend, listItems[friend].Link(friend.Nick), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating") + FriendEntry(friend, listItems) else .mountable .inactive-user - Avatar(friend) + FriendEntry(friend, listItems) h3.anime-section-name Ratings .anime-rating-categories @@ -235,4 +235,7 @@ component Anime(anime *arn.Anime, friends []*arn.User, listItems map[*arn.User]* //- ul.anime-synonyms //- li.anime-japanese-title= anime.title.japanese //- each synonym in anime.title.synonyms - //- li= synonym \ No newline at end of file + //- li= synonym + +component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem) + CustomAvatar(friend, listItems[friend].Link(friend.Nick), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")