btcpayserver/BTCPayServer/Views/Server/Services.cshtml

85 lines
2.6 KiB
Plaintext
Raw Normal View History

2018-07-22 11:38:14 +02:00
@model BTCPayServer.Models.ServerViewModels.ServicesViewModel
@{
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
}
<h4>@ViewData["Title"]</h4>
<partial name="_StatusMessage" for="@TempData["TempDataProperty-StatusMessage"]" />
2018-07-22 11:38:14 +02:00
<div class="row">
<div class="col-md-6">
<div asp-validation-summary="All" class="text-danger"></div>
</div>
</div>
<div class="row">
2018-08-13 08:10:59 +02:00
<div class="col-md-8">
<h4>Crypto services</h4>
2018-08-13 08:10:59 +02:00
<div class="form-group">
<span>You can get access here to LND (gRPC, Rest) services exposed by your server</span>
2018-08-13 08:10:59 +02:00
</div>
<div class="form-group">
<table class="table table-sm table-responsive-md">
<thead>
<tr>
<th>Crypto</th>
<th>Access Type</th>
<th style="text-align:right">Actions</th>
</tr>
</thead>
<tbody>
@foreach (var lnd in Model.LNDServices)
2018-08-13 08:10:59 +02:00
{
2018-07-22 11:38:14 +02:00
<tr>
2018-08-13 08:10:59 +02:00
<td>@lnd.Crypto</td>
2018-12-12 10:19:13 +01:00
<td>@lnd.Type</td>
2018-08-13 08:10:59 +02:00
<td style="text-align:right">
2018-12-12 10:19:13 +01:00
<a asp-action="@lnd.Action" asp-route-cryptoCode="@lnd.Crypto" asp-route-index="@lnd.Index">See information</a>
2018-08-13 08:10:59 +02:00
</td>
2018-07-22 11:38:14 +02:00
</tr>
2018-08-13 08:10:59 +02:00
}
</tbody>
</table>
</div>
</div>
</div>
@if (Model.ExternalServices.Count != 0)
{
<div class="row">
<div class="col-md-8">
<h4>Other services</h4>
<div class="form-group">
<span>Other external services</span>
</div>
<div class="form-group">
<table class="table table-sm table-responsive-md">
<thead>
<tr>
<th>Name</th>
<th style="text-align:right">Actions</th>
</tr>
</thead>
<tbody>
@foreach (var s in Model.ExternalServices)
2018-08-13 08:10:59 +02:00
{
<tr>
<td>@s.Name</td>
2018-08-13 08:10:59 +02:00
<td style="text-align:right">
<a href="@s.Link" target="_blank">See information</a>
2018-08-13 08:10:59 +02:00
</td>
</tr>
}
</tbody>
</table>
2018-07-22 11:38:14 +02:00
</div>
2018-08-13 08:10:59 +02:00
</div>
2018-07-22 11:38:14 +02:00
</div>
}
2018-07-22 11:38:14 +02:00
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}