mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
b22aa778e1
* Better webhook UI. Full URLs are visible. * Using Bootstrap CSS class instead of a new class * Created the generic class .sm:text-nowrap * Renamed class * Changed "sm" to "md"
50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
@model WebhooksViewModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Webhooks, "Webhooks", Context.GetStoreData().StoreName);
|
|
}
|
|
|
|
<div class="d-flex align-items-center justify-content-between mb-3">
|
|
<h4 class="mb-0">@ViewData["PageTitle"]</h4>
|
|
<a id="CreateWebhook" asp-action="NewWebhook" class="btn btn-primary" role="button" asp-route-storeId="@Context.GetRouteValue("storeId")">
|
|
<span class="fa fa-plus"></span>
|
|
Create a new webhook
|
|
</a>
|
|
</div>
|
|
<p>Webhooks allow BTCPay Server to send HTTP events related to your store to another server.</p>
|
|
|
|
@if (Model.Webhooks.Any())
|
|
{
|
|
<table class="table table-sm table-responsive-md">
|
|
<thead>
|
|
<tr>
|
|
<th>Url</th>
|
|
<th class="text-end">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var wh in Model.Webhooks)
|
|
{
|
|
<tr>
|
|
<td class="d-block text-break">@wh.Url</td>
|
|
<td class="text-end text-md-nowrap">
|
|
<a asp-action="TestWebhook" asp-route-storeId="@this.Context.GetRouteValue("storeId")" asp-route-webhookId="@wh.Id">Test</a> -
|
|
<a asp-action="ModifyWebhook" asp-route-storeId="@this.Context.GetRouteValue("storeId")" asp-route-webhookId="@wh.Id">Modify</a> -
|
|
<a asp-action="DeleteWebhook" asp-route-storeId="@this.Context.GetRouteValue("storeId")" asp-route-webhookId="@wh.Id">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3">
|
|
There are no webhooks yet.
|
|
</p>
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|