Limit group creation to supporters during BETA
This commit is contained in:
@ -10,7 +10,7 @@ component Groups(groups []*arn.Group, nextIndex int, user *arn.User)
|
||||
|
||||
.corner-buttons
|
||||
if user != nil
|
||||
if user.DraftIndex().GroupID == ""
|
||||
if user.DraftIndex().GroupID == "" && user.IsPro()
|
||||
button.action(data-action="newObject", data-trigger="click", data-type="group")
|
||||
Icon("plus")
|
||||
span New group
|
||||
@ -19,6 +19,11 @@ component Groups(groups []*arn.Group, nextIndex int, user *arn.User)
|
||||
Icon("pencil")
|
||||
span Edit draft
|
||||
|
||||
if user == nil || !user.IsPro()
|
||||
p.groups-beta-message.mountable
|
||||
a(href="/support") Supporters
|
||||
span are currently receiving early access to group creation during the BETA phase.
|
||||
|
||||
#load-more-target.groups
|
||||
GroupsScrollable(groups, user)
|
||||
|
||||
|
@ -1,6 +1,10 @@
|
||||
const group-padding-y = 0.75rem
|
||||
const group-padding-x = 0.75rem
|
||||
|
||||
.groups-beta-message
|
||||
text-align center
|
||||
margin-bottom 1rem
|
||||
|
||||
.groups
|
||||
display grid
|
||||
grid-gap content-padding-half
|
||||
|
Reference in New Issue
Block a user