From fee546ee9d35b0f6701b49f2c937e10b656a3411 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 9 Jul 2021 18:12:04 +0530 Subject: [PATCH] describe the premium support ticket policy on the support page --- www/support/app-support.less | 4 ++++ www/support/inner.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/www/support/app-support.less b/www/support/app-support.less index 0aa4c6b61..3d3066bcc 100644 --- a/www/support/app-support.less +++ b/www/support/app-support.less @@ -34,5 +34,9 @@ color: @cryptpad_color_link; text-decoration: underline; } + // add some whitespace to improve readability a bit + br { + margin: 5px; + } } diff --git a/www/support/inner.js b/www/support/inner.js index 6d9e5eae8..ebfe3bcfc 100644 --- a/www/support/inner.js +++ b/www/support/inner.js @@ -166,12 +166,29 @@ define([ return $div; }; + Messages.support_premiumPriority = "Premium users help support improvements to CryptPad's usability and benefit from prioritized responses to their support tickets."; // XXX + Messages.support_premiumLink = 'View subscription options.'; // XXX + // Create a new tickets create['form'] = function () { var key = 'form'; var $div = makeBlock(key, true); // Msg.support_formHint, .support_formTitle, .support_formButton Pages.documentationLink($div.find('a')[0], 'https://docs.cryptpad.fr/en/user_guide/index.html'); + var accountsLink = h('a', { + href: Pages.accounts.upgradeURL, + }, Messages.support_premiumLink,); + + var premium = h("div.alert.alert-info", [ + Messages.support_premiumPriority, + ' ', + accountsLink, + ]); + + if (Pages.areSubscriptionsAllowed()) { + $div.find('.cp-sidebarlayout-description').append(premium); + } + var form = APP.support.makeForm(); var id = Util.uid();