From ff725eaf4c3696b29ee9f27dcfac8ade0b3b0554 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Nov 2018 18:33:30 +0900 Subject: [PATCH] Fixed draft button being shown --- pages/groups/groups.pixy | 9 +++++---- pages/shop/shop.pixy | 14 +++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/pages/groups/groups.pixy b/pages/groups/groups.pixy index 174659ce..077418f4 100644 --- a/pages/groups/groups.pixy +++ b/pages/groups/groups.pixy @@ -10,10 +10,11 @@ component Groups(groups []*arn.Group, nextIndex int, user *arn.User) .corner-buttons if user != nil - if user.DraftIndex().GroupID == "" && user.IsPro() - button.action(data-action="newObject", data-trigger="click", data-type="group") - Icon("plus") - span New group + if user.DraftIndex().GroupID == "" + if user.IsPro() + button.action(data-action="newObject", data-trigger="click", data-type="group") + Icon("plus") + span New group else a.button(href="/group/" + user.DraftIndex().GroupID + "/edit") Icon("pencil") diff --git a/pages/shop/shop.pixy b/pages/shop/shop.pixy index 0e7579da..56344e5b 100644 --- a/pages/shop/shop.pixy +++ b/pages/shop/shop.pixy @@ -20,23 +20,27 @@ component Shop(items []*arn.ShopItem, itemPopularity map[string]int, user *arn.U Icon("check") span Access the dark theme - li.pro-benefit.mountable + li.pro-benefit.mountable Icon("check") span Customize your cover image - li.pro-benefit.mountable + li.pro-benefit.mountable + Icon("check") + span Gain early access to new features + + li.pro-benefit.mountable Icon("check") span Secure a spot on the supporters page - li.pro-benefit.mountable + li.pro-benefit.mountable Icon("check") span Show a star next to your avatar - li.pro-benefit.mountable + li.pro-benefit.mountable Icon("check") span Receive the supporter role on the Discord server - li.pro-benefit.mountable + li.pro-benefit.mountable Icon("check") span ...and many more luxury features in the future.