Added groups to user profiles

This commit is contained in:
2019-06-19 18:57:22 +09:00
parent da878290fa
commit 2d825739ca
3 changed files with 46 additions and 1 deletions

View File

@ -1,4 +1,4 @@
component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, completedList *arn.AnimeList, characters []*arn.Character, friends []*arn.User, topGenres []string, topStudios []*arn.Company, animeWatchingTime time.Duration, dayToActivityCount map[int]int, uri string)
component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, completedList *arn.AnimeList, characters []*arn.Character, groups []*arn.Group, friends []*arn.User, topGenres []string, topStudios []*arn.Company, animeWatchingTime time.Duration, dayToActivityCount map[int]int, uri string)
.profile
ProfileHeader(viewUser, animeList, user, uri)
@ -29,6 +29,18 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
each character in characters
.mountable(data-mountable-type="character")
CharacterSmall(character, user)
//- Groups
.profile-section
h3.profile-column-header.mountable(data-mountable-type="favorites") Groups
if len(groups) == 0
p.no-data.mountable(data-mountable-type="favorites") Nothing here yet.
else
.profile-groups.mountable(data-mountable-type="favorites")
each group in groups
a.profile-group.tip.mountable(href=group.Link(), aria-label=group.Name, data-mountable-type="group")
img.group-image.lazy(data-src=group.ImageLink("small"), data-webp=true, alt=group.Name)
//- //- People
//- .profile-section