btcpayserver/BTCPayServer/Views/Server/Services.cshtml

68 lines
2.5 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">
<div class="form-group">
<span>You can get access here to LND (gRPC, Rest) or SSH 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>
<td>LND @lnd.Type.ToString()</td>
2018-08-13 08:10:59 +02:00
<td style="text-align:right">
@if (lnd.Type == BTCPayServer.Configuration.External.LndTypes.gRPC)
{
<a asp-action="LNDGRPCServices" asp-route-cryptoCode="@lnd.Crypto" asp-route-index="@lnd.Index">See information</a>
}
else if (lnd.Type == BTCPayServer.Configuration.External.LndTypes.Rest)
{
<a asp-action="LndRestServices" 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
}
@if (Model.HasSSH)
2018-08-13 08:10:59 +02:00
{
<tr>
<td>None</td>
<td>SSH</td>
<td style="text-align:right">
<a asp-action="SSHService">See information</a>
</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>
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}