2024-02-21 20:54:39 +01:00
|
|
|
@using BTCPayServer.Services
|
|
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
2022-01-07 12:32:00 +09:00
|
|
|
@model HomeViewModel;
|
2024-02-21 20:54:39 +01:00
|
|
|
@inject SettingsRepository SettingsRepository
|
2022-01-13 09:08:15 +01:00
|
|
|
@{
|
2024-02-21 20:54:39 +01:00
|
|
|
var settings = await SettingsRepository.GetSettingAsync<ServerSettings>() ?? new ServerSettings();
|
|
|
|
ViewData["Title"] = string.IsNullOrWhiteSpace(settings.ServerName) ? "BTCPay Server" : settings.ServerName;
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|
|
|
|
|
2022-01-14 03:59:27 +01:00
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
|
2024-02-21 20:54:39 +01:00
|
|
|
<h2>Welcome to @(string.IsNullOrWhiteSpace(settings.ServerName) ? "your BTCPay\u00a0Server" : settings.ServerName)</h2>
|
2022-01-13 09:08:15 +01:00
|
|
|
|
2022-01-18 02:20:59 +01:00
|
|
|
@if (!Model.HasStore)
|
2022-01-13 09:08:15 +01:00
|
|
|
{
|
2022-01-27 03:56:46 +01:00
|
|
|
<p class="lead text-secondary">To start accepting payments, set up a store.</p>
|
|
|
|
|
|
|
|
<div class="list-group mt-4" id="SetupGuide">
|
|
|
|
<a asp-controller="UIUserStores" asp-action="CreateStore" id="SetupGuide-Store" class="list-group-item list-group-item-action d-flex align-items-center">
|
|
|
|
<vc:icon symbol="new-store"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0">Create your store</h5>
|
2022-01-13 09:08:15 +01:00
|
|
|
</div>
|
2022-01-27 03:56:46 +01:00
|
|
|
<vc:icon symbol="caret-right"/>
|
|
|
|
</a>
|
2017-10-27 17:53:04 +09:00
|
|
|
</div>
|
2022-01-13 09:08:15 +01:00
|
|
|
}
|