33 lines
1.2 KiB
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
p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin fermentum tellus congue, placerat augue vel, porta tortor. Nunc in elementum enim. Vestibulum ut arcu sed diam dapibus feugiat. Nam posuere, lectus et pellentesque interdum, mi orci aliquet lacus, a posuere lacus mi ac urna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec suscipit enim nec dui consectetur, vitae pulvinar urna commodo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
2017-10-17 21:17:04 +00:00
component GroupTabs(group *arn.Group)
.tabs
Tab("Group", "users", group.Link())
Tab("Edit", "pencil", group.Link() + "/edit")