17 lines
560 B
Plaintext
Raw Normal View History

2018-11-21 09:12:29 +00:00
component GroupMembers(group *arn.Group, member *arn.GroupMember, user *arn.User)
GroupTabs(group, member, user)
h1.page-title= fmt.Sprintf("%s - Members", group.Name)
.user-avatars.group-members.mountable
each member in group.Members
Avatar(member.User())
2018-11-21 12:29:40 +00:00
.buttons(data-api="/api" + group.Link())
if member == nil
button.mountable.action(data-action="join", data-trigger="click")
Icon("user-plus")
2018-11-22 02:13:39 +00:00
span Join group
2018-11-21 12:29:40 +00:00
else
button.mountable.action(data-action="leave", data-trigger="click")
Icon("user-times")
2018-11-22 02:13:39 +00:00
span Leave group