mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Dotcom pricing landing page changes
This commit is contained in:
parent
ce07d4d147
commit
5ec911dce2
2 changed files with 21 additions and 21 deletions
|
@ -2,24 +2,24 @@
|
||||||
{{#if (eq subscription.status 0)}}
|
{{#if (eq subscription.status 0)}}
|
||||||
<h3 class="color-red-600">Enjoy the Documize free plan!</h3>
|
<h3 class="color-red-600">Enjoy the Documize free plan!</h3>
|
||||||
<a href="https://www.documize.com/community">
|
<a href="https://www.documize.com/community">
|
||||||
{{ui/ui-button color=constants.Color.Yellow light=true label="Pay for product support"}}
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (eq subscription.status 1)}}
|
{{#if (eq subscription.status 1)}}
|
||||||
<h3 class="color-green-600">Nice, you have an active product subscription!</h3>
|
<h3 class="color-green-600">Nice, you have an active product subscription!</h3>
|
||||||
<a href="https://www.documize.com/community">
|
<a href="https://www.documize.com/community">
|
||||||
{{ui/ui-button color=constants.Color.Yellow light=true label="Pay for product support"}}
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (eq subscription.status 2)}}
|
{{#if (eq subscription.status 2)}}
|
||||||
<h3 class="color-red-600">Hmm, your product subscription has expired</h3>
|
<h3 class="color-red-600">Hmm, your product subscription has expired</h3>
|
||||||
<a href="https://www.documize.com/community">
|
<a href="https://www.documize.com/community/pricing?ref=app">
|
||||||
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (eq subscription.status 3)}}
|
{{#if (eq subscription.status 3)}}
|
||||||
<h3 class="color-red-600">Hmm, {{subscription.activeUsers}} active user count exceeds permitted {{subscription.seats}} user limit</h3>
|
<h3 class="color-red-600">Hmm, {{subscription.activeUsers}} active user count exceeds permitted {{subscription.seats}} user limit</h3>
|
||||||
<a href="https://www.documize.com/community">
|
<a href="https://www.documize.com/community/pricing?ref=app">
|
||||||
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
{{ui/ui-button color=constants.Color.Yellow light=true label="Get activation key"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -159,23 +159,23 @@ func (m *middleware) Authorize(w http.ResponseWriter, r *http.Request, next http
|
||||||
End: time.Now().UTC().Add(time.Hour * 24 * 7 * time.Duration(weeks))}
|
End: time.Now().UTC().Add(time.Hour * 24 * 7 * time.Duration(weeks))}
|
||||||
} else {
|
} else {
|
||||||
// Enterprise edition requires valid subscription data.
|
// Enterprise edition requires valid subscription data.
|
||||||
rc.Subscription = domain.Subscription{Edition: domain.EnterpriseEdition,
|
// rc.Subscription = domain.Subscription{Edition: domain.EnterpriseEdition,
|
||||||
Seats: domain.Seats6,
|
// Seats: domain.Seats6,
|
||||||
Trial: false,
|
// Trial: false,
|
||||||
Start: time.Now().UTC(),
|
// Start: time.Now().UTC(),
|
||||||
End: time.Now().UTC().Add(time.Hour * 24 * 7 * time.Duration(weeks))}
|
// End: time.Now().UTC().Add(time.Hour * 24 * 7 * time.Duration(weeks))}
|
||||||
// if len(strings.TrimSpace(org.Subscription)) > 0 {
|
if len(strings.TrimSpace(org.Subscription)) > 0 {
|
||||||
// sd := domain.SubscriptionData{}
|
sd := domain.SubscriptionData{}
|
||||||
// es1 := json.Unmarshal([]byte(org.Subscription), &sd)
|
es1 := json.Unmarshal([]byte(org.Subscription), &sd)
|
||||||
// if es1 == nil {
|
if es1 == nil {
|
||||||
// rc.Subscription, err = domain.DecodeSubscription(sd)
|
rc.Subscription, err = domain.DecodeSubscription(sd)
|
||||||
// if err != nil {
|
if err != nil {
|
||||||
// m.Runtime.Log.Error("unable to decode subscription for org "+rc.OrgID, err)
|
m.Runtime.Log.Error("unable to decode subscription for org "+rc.OrgID, err)
|
||||||
// }
|
}
|
||||||
// } else {
|
} else {
|
||||||
// m.Runtime.Log.Error("unable to load subscription for org "+rc.OrgID, es1)
|
m.Runtime.Log.Error("unable to load subscription for org "+rc.OrgID, es1)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tag all HTTP calls with subscription status
|
// Tag all HTTP calls with subscription status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue