From e7185d277fe5d49d2ef22cdff1086c9e80f55d52 Mon Sep 17 00:00:00 2001
From: Tobias Hagemann
Date: Thu, 7 Sep 2023 13:01:24 +0200
Subject: [PATCH] added modal when requesting hub managed with low quantity
---
assets/css/custom.css | 2 +-
i18n/de.yaml | 21 +++++-
i18n/en.yaml | 21 +++++-
layouts/hub-billing/single.html | 4 +-
layouts/hub-managed/single.html | 8 ++-
.../partials/hub-managed-low-quantity.html | 68 +++++++++++++++++++
6 files changed, 114 insertions(+), 10 deletions(-)
create mode 100644 layouts/partials/hub-managed-low-quantity.html
diff --git a/assets/css/custom.css b/assets/css/custom.css
index c42daaab64..e993070ebc 100644
--- a/assets/css/custom.css
+++ b/assets/css/custom.css
@@ -12,7 +12,7 @@
}
.btn {
- @apply inline-block border rounded no-underline px-4 py-2;
+ @apply inline-block border rounded no-underline text-center px-4 py-2;
}
.btn:hover,
diff --git a/i18n/de.yaml b/i18n/de.yaml
index f098e1c4cb..79f581b6dd 100644
--- a/i18n/de.yaml
+++ b/i18n/de.yaml
@@ -28,6 +28,8 @@
translation: "Ich akzeptiere die AGB sowie die Datenschutzerklärung."
- id: faq_title
translation: "Häufig gestellte Fragen"
+- id: modal_cancel
+ translation: "Abbrechen"
# Android
- id: android_getkey_title
@@ -432,8 +434,6 @@
translation: "Weiter"
- id: hub_billing_manage_modal_confirm
translation: "Bestätigen"
-- id: hub_billing_manage_modal_cancel
- translation: "Abbrechen"
- id: hub_billing_manage_restart_subscription_title
translation: "Abonnement fortsetzen"
@@ -548,6 +548,23 @@
- id: hub_managed_contact_us_button
translation: "Kontaktiere uns"
+- id: hub_managed_low_quantity_title
+ translation: "Empfehlung"
+- id: hub_managed_low_quantity_description
+ translation: "Cryptomator Hub wurde für Teams und Organisationen entwickelt, die Tresore mit ihren eigenen Accounts entsperren möchten, anstatt mit einem gemeinsamen Passwort."
+- id: hub_managed_low_quantity_description_1
+ translation: "Lade Cryptomator ohne Hub herunter, wenn du Tresore alleine nutzen möchtest."
+- id: hub_managed_low_quantity_description_2
+ translation: "Lade Cryptomator ohne Hub herunter, wenn du Tresore mit jemandem teilen möchtest. Lies die Best Practices zum Teilen von Tresoren."
+- id: hub_managed_low_quantity_description_3
+ translation: "Lade Cryptomator ohne Hub herunter, wenn du Tresore mit einem kleinen Team teilen möchtest. Lies die Best Practices zum Teilen von Tresoren."
+- id: hub_managed_low_quantity_description_4
+ translation: "Ansonsten kannst du gerne Zugang zu einer Managed-Instanz von Cryptomator Hub anfordern."
+- id: hub_managed_low_quantity_submit_1
+ translation: "Zu Downloads"
+- id: hub_managed_low_quantity_submit_2
+ translation: "Anfrage bestätigen"
+
# Hub Setup
- id: hub_setup_description
translation: "Generiere die erforderlichen Konfigurationsvorlagen für deine Hub-Installation und hol dein Team mit der clientseitigen Verschlüsselung für deinen Cloud-Speicher an Bord."
diff --git a/i18n/en.yaml b/i18n/en.yaml
index c642d35e38..cafac64b91 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -28,6 +28,8 @@
translation: "I accept the Terms & Conditions as well as the Privacy Policy."
- id: faq_title
translation: "Frequently Asked Questions"
+- id: modal_cancel
+ translation: "Cancel"
# Android
- id: android_getkey_title
@@ -432,8 +434,6 @@
translation: "Continue"
- id: hub_billing_manage_modal_confirm
translation: "Confirm"
-- id: hub_billing_manage_modal_cancel
- translation: "Cancel"
- id: hub_billing_manage_restart_subscription_title
translation: "Resume Subscription"
@@ -548,6 +548,23 @@
- id: hub_managed_contact_us_button
translation: "Contact Us"
+- id: hub_managed_low_quantity_title
+ translation: "Recommendation"
+- id: hub_managed_low_quantity_description
+ translation: "Cryptomator Hub is designed for teams and organizations that want to unlock vaults using their own accounts instead of a shared password."
+- id: hub_managed_low_quantity_description_1
+ translation: "Download Cryptomator without Hub if you intend to use vaults on your own."
+- id: hub_managed_low_quantity_description_2
+ translation: "Download Cryptomator without Hub if you intend to share vaults with another person. Check out the best practices on how to share vaults."
+- id: hub_managed_low_quantity_description_3
+ translation: "Download Cryptomator without Hub if you intend to share vaults with a small team. Check out the best practices on how to share vaults."
+- id: hub_managed_low_quantity_description_4
+ translation: "Otherwise, feel free to request access to a managed instance of Cryptomator Hub."
+- id: hub_managed_low_quantity_submit_1
+ translation: "Go to Downloads"
+- id: hub_managed_low_quantity_submit_2
+ translation: "Confirm Request"
+
# Hub Setup
- id: hub_setup_description
translation: "Generate the necessary configuration templates for your Hub deployment and get your team on board with client-side encryption for your cloud storage."
diff --git a/layouts/hub-billing/single.html b/layouts/hub-billing/single.html
index 7ce19d7f99..a5b35ca464 100644
--- a/layouts/hub-billing/single.html
+++ b/layouts/hub-billing/single.html
@@ -208,7 +208,7 @@