Reorder user home tab menu
This commit is contained in:
@@ -79,12 +79,15 @@ onMount(() => {
|
|||||||
<LoadingIndicator loading={loading}/>
|
<LoadingIndicator loading={loading}/>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2 id="deposit">Deposit credits</h2>
|
<h2 id="deposit">Deposit credit</h2>
|
||||||
<p>
|
<p>
|
||||||
Pixeldrain credits can be used for our prepaid plans, which are
|
Pixeldrain credit can be used for our prepaid plans, which are different
|
||||||
different from the Patreon plans. With prepaid you only pay for what you
|
from the Patreon plans. With prepaid you only pay for what you use, at a
|
||||||
use, at a rate of €4 per TB per month for storage and €2 per TB for data
|
rate of €4 per TB per month for storage and €2 per TB for data transfer.
|
||||||
transfer.
|
See the Subscriptions tab for more information about the perks.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Current account balance: <Euro amount={window.user.balance_micro_eur}></Euro>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="tab_bar">
|
<div class="tab_bar">
|
||||||
|
@@ -225,7 +225,8 @@ onDestroy(() => {
|
|||||||
{#if window.user.subscription.type === "patreon"}
|
{#if window.user.subscription.type === "patreon"}
|
||||||
(<a href="https://www.patreon.com/join/pixeldrain/checkout?edit=1">Manage subscription</a>)
|
(<a href="https://www.patreon.com/join/pixeldrain/checkout?edit=1">Manage subscription</a>)
|
||||||
{:else if window.user.subscription.id === ""}
|
{:else if window.user.subscription.id === ""}
|
||||||
(<a href="/api/patreon_auth/start" class="button">Link Patreon subscription</a>)
|
(<a href="/api/patreon_auth/start">Link Patreon subscription</a> /
|
||||||
|
<a href="/user/prepaid/deposit">deposit account credit</a>)
|
||||||
{/if}
|
{/if}
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@@ -241,6 +242,7 @@ onDestroy(() => {
|
|||||||
{#if window.user.balance_micro_eur !== 0}
|
{#if window.user.balance_micro_eur !== 0}
|
||||||
<li>
|
<li>
|
||||||
Current account balance: <Euro amount={window.user.balance_micro_eur}></Euro>
|
Current account balance: <Euro amount={window.user.balance_micro_eur}></Euro>
|
||||||
|
(<a href="/user/prepaid/deposit">deposit credit</a>)
|
||||||
{#if window.user.subscription.id === ""}
|
{#if window.user.subscription.id === ""}
|
||||||
<br/>
|
<br/>
|
||||||
You have account credit but no active subscription. Activate
|
You have account credit but no active subscription. Activate
|
||||||
|
@@ -23,6 +23,28 @@ let pages = [
|
|||||||
title: "Settings",
|
title: "Settings",
|
||||||
icon: "settings",
|
icon: "settings",
|
||||||
component: AccountSettings,
|
component: AccountSettings,
|
||||||
|
}, {
|
||||||
|
path: "/user/prepaid",
|
||||||
|
title: "Prepaid",
|
||||||
|
icon: "receipt_long",
|
||||||
|
subpages: [
|
||||||
|
{
|
||||||
|
path: "/user/prepaid/deposit",
|
||||||
|
title: "Deposit credit",
|
||||||
|
icon: "account_balance_wallet",
|
||||||
|
component: DepositCredit,
|
||||||
|
}, {
|
||||||
|
path: "/user/prepaid/subscriptions",
|
||||||
|
title: "Subscriptions",
|
||||||
|
icon: "shopping_cart",
|
||||||
|
component: Subscription,
|
||||||
|
}, {
|
||||||
|
path: "/user/prepaid/transactions",
|
||||||
|
title: "Transactions",
|
||||||
|
icon: "receipt",
|
||||||
|
component: Transactions,
|
||||||
|
},
|
||||||
|
],
|
||||||
}, {
|
}, {
|
||||||
path: "/user/sharing",
|
path: "/user/sharing",
|
||||||
title: "Sharing",
|
title: "Sharing",
|
||||||
@@ -60,28 +82,6 @@ let pages = [
|
|||||||
title: "Activity Log",
|
title: "Activity Log",
|
||||||
icon: "list",
|
icon: "list",
|
||||||
component: ActivityLog,
|
component: ActivityLog,
|
||||||
}, {
|
|
||||||
path: "/user/prepaid",
|
|
||||||
title: "Prepaid",
|
|
||||||
icon: "receipt_long",
|
|
||||||
subpages: [
|
|
||||||
{
|
|
||||||
path: "/user/prepaid/deposit",
|
|
||||||
title: "Deposit credit",
|
|
||||||
icon: "account_balance_wallet",
|
|
||||||
component: DepositCredit,
|
|
||||||
}, {
|
|
||||||
path: "/user/prepaid/subscriptions",
|
|
||||||
title: "Subscriptions",
|
|
||||||
icon: "shopping_cart",
|
|
||||||
component: Subscription,
|
|
||||||
}, {
|
|
||||||
path: "/user/prepaid/transactions",
|
|
||||||
title: "Transactions",
|
|
||||||
icon: "receipt",
|
|
||||||
component: Transactions,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user