Skip to content

Instantly share code, notes, and snippets.

@ahmadajmi
Created October 27, 2022 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadajmi/8e14ff3d62287abb358492d685c41d0f to your computer and use it in GitHub Desktop.
Save ahmadajmi/8e14ff3d62287abb358492d685c41d0f to your computer and use it in GitHub Desktop.
{{#unless access}}
<aside class='c-post-upgrade-cta'>
{{#has visibility='members'}}
<h4 class='c-post-upgrade-cta__title'>{{t 'This page is for subscribers only'}}</h4>
{{/has}}
{{#has visibility='paid'}}
<h4 class='c-post-upgrade-cta__title'>{{t 'This page is for paying subscribers only'}}</h4>
{{/has}}
{{#has visibility='tiers'}}
<h4 class='c-post-upgrade-cta__title'>{{t 'This page is for subscribers on the '}}{{ tiers }}</h4>
{{/has}}
{{#if @member}}
<a class='c-btn c-btn--active' href='#/portal/account/plans'>{{t 'Upgrade your account'}}</a>
{{else}}
<a class='c-btn c-btn--active' href='#/portal/signup'>{{t 'Subscribe Now'}}</a>
<div><span class='u-font-size-small'>{{t 'Already have an account?'}} <a href='#/portal/signin' class='u-link'>{{t 'Log In'}}</a></span></div>
{{/if}}
</aside>
{{/unless}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment