From 26040e89b64816420a65d03875d42ac0f520daa2 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 7 Mar 2018 15:42:41 +0100 Subject: [PATCH] Moved default cover to elements directory --- .../default-cover.jpg} | Bin .../default-cover.webp} | Bin pages/settings/settings.pixy | 5 +++-- patches/add-shop-items/add-shop-items.go | 20 +++++++++++------- tests.go | 4 ---- 5 files changed, 15 insertions(+), 14 deletions(-) rename images/{cover/default.jpg => elements/default-cover.jpg} (100%) rename images/{cover/default.webp => elements/default-cover.webp} (100%) diff --git a/images/cover/default.jpg b/images/elements/default-cover.jpg similarity index 100% rename from images/cover/default.jpg rename to images/elements/default-cover.jpg diff --git a/images/cover/default.webp b/images/elements/default-cover.webp similarity index 100% rename from images/cover/default.webp rename to images/elements/default-cover.webp diff --git a/pages/settings/settings.pixy b/pages/settings/settings.pixy index 179af4f0..6d4500c5 100644 --- a/pages/settings/settings.pixy +++ b/pages/settings/settings.pixy @@ -76,8 +76,9 @@ component SettingsPersonal(user *arn.User) .cover-preview(title="Recommended: 1920 x 450 | PNG or JPG") img#cover-input-preview.profile-cover.lazy(data-src=user.CoverLink("small"), data-webp="true", alt="Cover image") - .footer - p PRO account required. + if !user.IsPro() + .footer + p PRO account required. component SettingsNotifications(user *arn.User) SettingsTabs diff --git a/patches/add-shop-items/add-shop-items.go b/patches/add-shop-items/add-shop-items.go index 3f9bcda9..300be2d8 100644 --- a/patches/add-shop-items/add-shop-items.go +++ b/patches/add-shop-items/add-shop-items.go @@ -13,9 +13,10 @@ var items = []*arn.Item{ Includes: -* Dark theme for the site and extension -* Special highlight on the forums +* Dark theme for the website and extension +* Upload your own cover image * PRO star on your profile +* Special highlight on the forums * Access to the VIP channel on Discord * Early access to new features`, Icon: "star", @@ -33,9 +34,10 @@ Includes: Includes: -* Dark theme for the site and extension -* Special highlight on the forums +* Dark theme for the website and extension +* Upload your own cover image * PRO star on your profile +* Special highlight on the forums * Access to the VIP channel on Discord * Early access to new features`, Icon: "star", @@ -53,9 +55,10 @@ Includes: Includes: -* Dark theme for the site and extension -* Special highlight on the forums +* Dark theme for the website and extension +* Upload your own cover image * PRO star on your profile +* Special highlight on the forums * Access to the VIP channel on Discord * Early access to new features`, Icon: "star", @@ -73,9 +76,10 @@ Includes: Includes: -* Dark theme for the site and extension -* Special highlight on the forums +* Dark theme for the website and extension +* Upload your own cover image * PRO star on your profile +* Special highlight on the forums * Access to the VIP channel on Discord * Early access to new features`, Icon: "star", diff --git a/tests.go b/tests.go index 0a228c3e..f856af25 100644 --- a/tests.go +++ b/tests.go @@ -241,10 +241,6 @@ var routeTests = map[string][]string{ "/images/login/google", }, - "/images/cover/:file": []string{ - "/images/cover/default", - }, - "/images/elements/:file": []string{ "/images/elements/no-avatar.svg", },