Minor improvements

This commit is contained in:
Eduard Urbach 2019-06-19 19:00:42 +09:00
parent 2d825739ca
commit 84c34b0252
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 5 additions and 5 deletions

View File

@ -160,7 +160,7 @@ func Profile(ctx aero.Context, viewUser *arn.User) error {
groups := []*arn.Group{}
for group := range arn.StreamGroups() {
if group.HasMember(viewUser.ID) {
if !group.IsDraft && group.HasMember(viewUser.ID) {
groups = append(groups, group)
}
}

View File

@ -37,10 +37,10 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
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)
.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