mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
billing: Edit helper text on sponsorship application
* nonprofit -> non-profit * Edit pass on defautl helper text to use more user-oriented language.
This commit is contained in:
@@ -164,7 +164,7 @@ run_test("initialize", ({override}) => {
|
||||
helpers.update_discount_details("event");
|
||||
assert.equal(
|
||||
$("#sponsorship-discount-details").text(),
|
||||
"Zulip Cloud Standard is free for academic conferences and most nonprofit events.",
|
||||
"Zulip Cloud Standard is free for academic conferences and most non-profit events.",
|
||||
);
|
||||
helpers.update_discount_details("education");
|
||||
assert.equal(
|
||||
@@ -174,12 +174,12 @@ run_test("initialize", ({override}) => {
|
||||
helpers.update_discount_details("nonprofit");
|
||||
assert.equal(
|
||||
$("#sponsorship-discount-details").text(),
|
||||
"Zulip Cloud Standard is discounted 85%+ for registered nonprofits.",
|
||||
"Zulip Cloud Standard is discounted 85%+ for registered non-profits.",
|
||||
);
|
||||
helpers.update_discount_details("other");
|
||||
assert.equal(
|
||||
$("#sponsorship-discount-details").text(),
|
||||
"Your organization may be eligible for a discount on Zulip Standard. Generally, use cases where the users are not your employees are eligible for discounts.",
|
||||
"Your organization may be eligible for a discount on Zulip Cloud Standard. Organizations whose members are not employees are generally eligible.",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -89,15 +89,15 @@ export function update_charged_amount(prices, schedule) {
|
||||
|
||||
export function update_discount_details(organization_type) {
|
||||
let discount_notice =
|
||||
"Your organization may be eligible for a discount on Zulip Standard. Generally, use cases where the users are not your employees are eligible for discounts.";
|
||||
"Your organization may be eligible for a discount on Zulip Cloud Standard. Organizations whose members are not employees are generally eligible.";
|
||||
const discount_details = {
|
||||
opensource: "Zulip Cloud Standard is free for open-source projects.",
|
||||
research: "Zulip Cloud Standard is free for academic research.",
|
||||
nonprofit: "Zulip Cloud Standard is discounted 85%+ for registered nonprofits.",
|
||||
event: "Zulip Cloud Standard is free for academic conferences and most nonprofit events.",
|
||||
nonprofit: "Zulip Cloud Standard is discounted 85%+ for registered non-profits.",
|
||||
event: "Zulip Cloud Standard is free for academic conferences and most non-profit events.",
|
||||
education: "Zulip Cloud Standard is discounted 85% for education.",
|
||||
education_nonprofit:
|
||||
"Zulip Cloud Standard is discounted 90% for education nonprofits with online purchase.",
|
||||
"Zulip Cloud Standard is discounted 90% for education non-profits with online purchase.",
|
||||
};
|
||||
if (discount_details[organization_type]) {
|
||||
discount_notice = discount_details[organization_type];
|
||||
|
||||
Reference in New Issue
Block a user