mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
cbf8b23385
* Add XXL breakpoint * Unify setup guide display * Adapt desktop breakpoints in views * Fix POS code display * Fix syntax in home view * store settings + constrain update * account settings Co-authored-by: dstrukt <gfxdsign@gmail.com> Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
92 lines
3.4 KiB
Plaintext
92 lines
3.4 KiB
Plaintext
@model StoreDashboardViewModel;
|
|
@{
|
|
ViewData.SetActivePage(StoreNavPages.Dashboard, Model.StoreName, Model.StoreId);
|
|
var isReady = Model.WalletEnabled || Model.LightningEnabled;
|
|
}
|
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
<h2 class="mt-1 mb-3">@ViewData["Title"]</h2>
|
|
|
|
@if (isReady)
|
|
{
|
|
<p class="lead text-secondary">This store is ready to accept transactions, good job!</p>
|
|
}
|
|
else
|
|
{
|
|
<p class="lead text-secondary">To start accepting payments, set up a wallet or a Lightning node.</p>
|
|
}
|
|
|
|
<div class="list-group" id="SetupGuide">
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-StoreDone">
|
|
<vc:icon symbol="done"/>
|
|
<div class="content">
|
|
<h5 class="mb-0 text-success">Create your store</h5>
|
|
</div>
|
|
</div>
|
|
@if (!Model.WalletEnabled)
|
|
{
|
|
if (!Model.AltcoinsBuild)
|
|
{
|
|
<a asp-controller="UIStores" asp-action="SetupWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="BTC" id="SetupGuide-Wallet" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
|
<vc:icon symbol="new-wallet"/>
|
|
<div class="content">
|
|
<h5 class="mb-0">Set up a wallet</h5>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="UIStores" asp-action="GeneralSettings" asp-route-storeId="@Model.StoreId" id="SetupGuide-Wallet" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
|
<vc:icon symbol="new-wallet"/>
|
|
<div class="content">
|
|
<h5 class="mb-0">Set up a wallet</h5>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-WalletDone">
|
|
<vc:icon symbol="done"/>
|
|
<div class="content">
|
|
<h5 class="mb-0 text-success">Set up a wallet</h5>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!Model.LightningEnabled)
|
|
{
|
|
if (!Model.AltcoinsBuild)
|
|
{
|
|
<a asp-controller="UIStores" asp-action="SetupLightningNode" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="BTC" id="SetupGuide-Lightning" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
|
<vc:icon symbol="new-wallet"/>
|
|
<div class="content">
|
|
<h5 class="mb-0">Set up a Lightning node</h5>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="UIStores" asp-action="GeneralSettings" asp-route-storeId="@Model.StoreId" id="SetupGuide-Lightning" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
|
<vc:icon symbol="new-wallet"/>
|
|
<div class="content">
|
|
<h5 class="mb-0">Set up a Lightning node</h5>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-LightningDone">
|
|
<vc:icon symbol="done"/>
|
|
<div class="content">
|
|
<h5 class="mb-0 text-success">Set up a Lightning node</h5>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|