25 lines
608 B
Plaintext
Raw Normal View History

2017-10-17 21:17:04 +00:00
component Groups(groups []*arn.Group, user *arn.User)
.tabs
Tab("Groups", "users", "/groups")
h1.page-title Groups
.buttons
if user != nil
if user.DraftIndex().GroupID == ""
button.action(data-action="newObject", data-trigger="click", data-type="group")
Icon("plus")
span New group
else
a.button.ajax(href="/group/" + user.DraftIndex().GroupID + "/edit")
Icon("pencil")
span Edit draft
.groups
each group in groups
.group
2017-10-18 10:02:48 +00:00
h3.group-name= group.Name
.group-tagline= group.Tagline
.group-member-count
Icon("user")
span= len(group.Members)