Fixed inactive users

This commit is contained in:
Eduard Urbach 2017-07-21 11:49:28 +02:00
parent b7786b1d51
commit f30056363b

View File

@ -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
//- 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")