btcpayserver/BTCPayServer/Views/Server/Services.cshtml

149 lines
4.9 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 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 s in Model.ExternalServices)
2018-08-13 08:10:59 +02:00
{
2018-07-22 11:38:14 +02:00
<tr>
<td>@s.CryptoCode</td>
<td>@s.DisplayName</td>
2018-08-13 08:10:59 +02:00
<td style="text-align:right">
<a asp-action="Service" asp-route-serviceName="@s.ServiceName" asp-route-cryptoCode="@s.CryptoCode">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.OtherExternalServices.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.OtherExternalServices)
{
<tr>
<td>@s.Name</td>
<td style="text-align:right">
<a href="@s.Link" target="_blank">See information</a>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
}
2019-03-18 08:45:46 +01:00
@if (Model.TorHttpServices.Count != 0)
{
<div class="row">
<div class="col-md-8">
2019-03-18 08:45:46 +01:00
<h4>HTTP TOR hidden services</h4>
<div class="form-group">
<span>TOR services hosted on this server, only http servers are listed here.</span>
</div>
<div class="form-group">
<table class="table table-sm table-responsive-md">
<thead>
2018-08-13 08:10:59 +02:00
<tr>
<th>Name</th>
<th style="text-align:right">Actions</th>
2018-08-13 08:10:59 +02:00
</tr>
</thead>
<tbody>
2019-03-18 08:45:46 +01:00
@foreach (var s in Model.TorHttpServices)
{
<tr>
<td>@s.Name</td>
<td style="text-align:right">
<a href="@s.Link" target="_blank">See information</a>
</td>
</tr>
}
</tbody>
</table>
</div>
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
2019-03-18 08:45:46 +01:00
@if (Model.TorOtherServices.Count != 0)
{
<div class="row">
<div class="col-md-8">
<h4>Other TOR hidden services</h4>
<div class="form-group">
<span>TOR services hosted on this server which are not http based.</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.TorOtherServices)
{
<tr>
<td>@s.Name</td>
<td style="text-align:right">@s.Link</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
}
2018-07-22 11:38:14 +02:00
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}