Improved groups

This commit is contained in:
2018-03-07 00:36:04 +01:00
parent 4fd5cb76e2
commit 621155bfcc
9 changed files with 23 additions and 14 deletions

View File

@ -4,7 +4,7 @@ component Groups(groups []*arn.Group, groupsPerPage int, user *arn.User)
h1.page-title Groups
.buttons
.corner-buttons
if user != nil
if user.DraftIndex().GroupID == ""
button.action(data-action="newObject", data-trigger="click", data-type="group")
@ -19,6 +19,7 @@ component Groups(groups []*arn.Group, groupsPerPage int, user *arn.User)
each group in groups
a.group.mountable.ajax(href=group.Link())
img.group-image.lazy(data-src=group.ImageURL(), alt=group.Name)
.group-info
h3.group-name= group.Name
.group-tagline= group.Tagline