REFACTOR: Rename s to subscribe (#86)

This commit is contained in:
Justin DiRose 2021-07-19 19:56:19 -05:00 committed by GitHub
parent 6414a1f6e5
commit 5ead25feb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ export default Component.extend({
const showOnRoute =
currentRoute !== "discovery.s" &&
!currentRoute.split(".")[0].includes("admin") &&
currentRoute.split(".")[0] !== "s";
currentRoute.split(".")[0] !== "subscribe";
if (!this.site.show_campaign_banner) {
return false;

View File

@ -1,5 +1,5 @@
export default function () {
this.route("s", function () {
this.route("subscribe", { path: "/s" }, function () {
this.route("show", { path: "/:subscription-id" });
});
}

View File

@ -14,11 +14,11 @@
<p class="campaign-banner-info-description">{{i18n "discourse_subscriptions.campaign.body"}}</p>
{{#if product}}
{{#link-to "s.show" product disabled=product.subscribed class="btn btn-primary campaign-banner-info-button"}}
{{#link-to "subscribe.show" product disabled=product.subscribed class="btn btn-primary campaign-banner-info-button"}}
{{d-icon "far-heart"}} {{d-icon "heart" class="hover-heart"}} {{i18n "discourse_subscriptions.campaign.button"}}
{{/link-to}}
{{else}}
{{#link-to "s" class="btn btn-primary campaign-banner-info-button"}}
{{#link-to "subscribe" class="btn btn-primary campaign-banner-info-button"}}
{{d-icon "far-heart"}} {{d-icon "heart" class="hover-heart"}} {{i18n "discourse_subscriptions.campaign.button"}}
{{/link-to}}
{{/if}}

View File

@ -7,7 +7,7 @@
{{#if isLoggedIn}}
<div class="product-purchase">
{{#if product.repurchaseable}}
{{#link-to "s.show" product.id class="btn btn-primary"}}
{{#link-to "subscribe.show" product.id class="btn btn-primary"}}
{{i18n "discourse_subscriptions.subscribe.title"}}
{{/link-to}}
{{#if product.subscribed}}
@ -22,7 +22,7 @@
{{i18n "discourse_subscriptions.subscribe.go_to_billing"}}
{{/link-to}}
{{else}}
{{#link-to "s.show" product.id disabled=product.subscribed class="btn btn-primary"}}
{{#link-to "subscribe.show" product.id disabled=product.subscribed class="btn btn-primary"}}
{{i18n "discourse_subscriptions.subscribe.title"}}
{{/link-to}}
{{/if}}