Limit group creation to supporters during BETA

This commit is contained in:
Eduard Urbach 2018-11-22 17:31:24 +09:00
parent c9e8cf7829
commit 5fff9da00d
3 changed files with 11 additions and 2 deletions

View File

@ -39,7 +39,7 @@ component Sidebar(user *arn.User)
SidebarButton("Quotes", "/quotes", "quote-left")
if arn.IsDevelopment()
SidebarButton("Groups", "/groups", "users")
SidebarButton("Groups BETA", "/groups", "users")
SidebarButton("Users", "/users", "globe")

View File

@ -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)

View File

@ -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