From 5fff9da00d8817ebd425c25aa84441853893721e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Nov 2018 17:31:24 +0900 Subject: [PATCH] Limit group creation to supporters during BETA --- layout/sidebar/sidebar.pixy | 2 +- pages/groups/groups.pixy | 7 ++++++- pages/groups/groups.scarlet | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/layout/sidebar/sidebar.pixy b/layout/sidebar/sidebar.pixy index 31ee906d..d2328325 100644 --- a/layout/sidebar/sidebar.pixy +++ b/layout/sidebar/sidebar.pixy @@ -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") diff --git a/pages/groups/groups.pixy b/pages/groups/groups.pixy index bd5b6e2c..174659ce 100644 --- a/pages/groups/groups.pixy +++ b/pages/groups/groups.pixy @@ -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) diff --git a/pages/groups/groups.scarlet b/pages/groups/groups.scarlet index 0fc12d6a..c37a025f 100644 --- a/pages/groups/groups.scarlet +++ b/pages/groups/groups.scarlet @@ -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