2018-07-22 11:38:14 +02:00
|
|
|
@model BTCPayServer.Models.ServerViewModels.ServicesViewModel
|
|
|
|
@{
|
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
2018-08-03 05:14:09 +02:00
|
|
|
<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">
|
2018-10-27 15:49:39 +02:00
|
|
|
<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>
|
2018-10-27 15:49:39 +02:00
|
|
|
@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-10-27 15:49:39 +02:00
|
|
|
<td>LND @lnd.Type.ToString()</td>
|
2018-08-13 08:10:59 +02:00
|
|
|
<td style="text-align:right">
|
2018-10-27 15:49:39 +02:00
|
|
|
@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
|
|
|
}
|
2018-10-27 15:49:39 +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")
|
|
|
|
}
|