38 lines
917 B
Plaintext
Raw Normal View History

2017-10-17 21:17:04 +00:00
component Group(group *arn.Group)
GroupTabs(group)
if group.Name != ""
2017-10-18 19:18:10 +00:00
h1.mountable= group.Name
2017-10-17 21:17:04 +00:00
else
2017-10-18 19:18:10 +00:00
h1.mountable untitled
2017-10-17 21:17:04 +00:00
2017-10-18 19:18:10 +00:00
.group-view
.group-sidebar.mountable
2017-10-18 20:09:17 +00:00
if group.Description != ""
.group-sidebar-section
h3 Description
.group-description!= markdown.Render(group.Description)
2017-10-18 19:18:10 +00:00
2017-10-18 20:09:17 +00:00
if group.Rules != ""
.group-sidebar-section
h3 Rules
.group-rules!= markdown.Render(group.Rules)
2017-10-18 19:18:10 +00:00
.group-sidebar-section
h3 Members
.user-avatars.group-members
each member in group.Members
Avatar(member.User())
.group-feed.mountable
2017-10-20 18:57:41 +00:00
if len(group.Posts()) == 0
p.text-center.mountable No posts in this group yet.
else
each post in group.Posts()
p!= post.HTML()
2017-10-17 21:17:04 +00:00
component GroupTabs(group *arn.Group)
.tabs
Tab("Group", "users", group.Link())
2017-10-18 21:17:54 +00:00
Tab("Forum", "comment", group.Link() + "/forum")
2017-10-17 21:17:04 +00:00
Tab("Edit", "pencil", group.Link() + "/edit")