Added groups to user profiles
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user