Limit group creation to supporters during BETA
This commit is contained in:
parent
c9e8cf7829
commit
5fff9da00d
@ -39,7 +39,7 @@ component Sidebar(user *arn.User)
|
|||||||
SidebarButton("Quotes", "/quotes", "quote-left")
|
SidebarButton("Quotes", "/quotes", "quote-left")
|
||||||
|
|
||||||
if arn.IsDevelopment()
|
if arn.IsDevelopment()
|
||||||
SidebarButton("Groups", "/groups", "users")
|
SidebarButton("Groups BETA", "/groups", "users")
|
||||||
|
|
||||||
SidebarButton("Users", "/users", "globe")
|
SidebarButton("Users", "/users", "globe")
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ component Groups(groups []*arn.Group, nextIndex int, user *arn.User)
|
|||||||
|
|
||||||
.corner-buttons
|
.corner-buttons
|
||||||
if user != nil
|
if user != nil
|
||||||
if user.DraftIndex().GroupID == ""
|
if user.DraftIndex().GroupID == "" && user.IsPro()
|
||||||
button.action(data-action="newObject", data-trigger="click", data-type="group")
|
button.action(data-action="newObject", data-trigger="click", data-type="group")
|
||||||
Icon("plus")
|
Icon("plus")
|
||||||
span New group
|
span New group
|
||||||
@ -19,6 +19,11 @@ component Groups(groups []*arn.Group, nextIndex int, user *arn.User)
|
|||||||
Icon("pencil")
|
Icon("pencil")
|
||||||
span Edit draft
|
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
|
#load-more-target.groups
|
||||||
GroupsScrollable(groups, user)
|
GroupsScrollable(groups, user)
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
const group-padding-y = 0.75rem
|
const group-padding-y = 0.75rem
|
||||||
const group-padding-x = 0.75rem
|
const group-padding-x = 0.75rem
|
||||||
|
|
||||||
|
.groups-beta-message
|
||||||
|
text-align center
|
||||||
|
margin-bottom 1rem
|
||||||
|
|
||||||
.groups
|
.groups
|
||||||
display grid
|
display grid
|
||||||
grid-gap content-padding-half
|
grid-gap content-padding-half
|
||||||
|
Loading…
Reference in New Issue
Block a user