-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
account.hbs
executable file
·47 lines (47 loc) · 2.74 KB
/
account.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
<div class="site-content-wrap">
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="post-wrap">
<article class="post-single page">
{{#if @member.paid}}
<div class="post-header d-flex">
<div class="header-content-wrap text-center">
<h1 class="post-title text-center">{{t "Nice, you're a paid subscriber!"}}</h1>
</div>
</div>
<div class="members-page-content">
<div class="members-page-subtitle text-center">
{{t "Hey! You are currently logged in with"}} <strong>{{@member.email}}</strong>.<br>{{t "You have an active"}} <strong>{{@site.title}}</strong> {{t "account with access to all areas."}} {{t "You're all set, but if you need any help, get in touch with us and we'd be happy to help."}}
</div>
<div class="text-center">
<a href="{{@site.url}}" class="btn btn-primary">{{t "Return to home page"}}</a>
</div>
</div>
{{else if @member}}
<div class="post-header d-flex">
<div class="header-content-wrap text-center">
<h1 class="post-title text-center">{{t "Nice, you're a subscriber!"}}</h1>
</div>
</div>
<div class="members-page-content">
<div class="members-page-subtitle text-center">
{{t "Hey! You are currently logged in with"}} <strong>{{@member.email}}</strong>. {{t "You have subscribed to free updates from"}} {{@site.title}}. {{t "Subscribe to paid plan to unlock full access."}}
</div>
<div class="pricing-table-wrap">
{{> members/pricing-table-monthly}}
{{> members/pricing-table-yearly}}
</div>
</div>
{{else}}
{{!-- Not logged in: Redirect to signin --}}
<script>window.location = '{{@site.url}}/signin/';</script>
{{/if}}
</article>
</div>
</div>
</div>
</div>
</div>