mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Add noindex,nofollow to invoices, checkouts and fix create invoice ui bug (#407)
* add noindex,nofollow on invoices * fix create invoice button and add noindex,nofollow to checkout and invoice pages
This commit is contained in:
parent
4dccd0c733
commit
d90fb5764d
4 changed files with 14 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
|
<META NAME="robots" CONTENT="noindex,nofollow">
|
||||||
<title>@Model.HtmlTitle</title>
|
<title>@Model.HtmlTitle</title>
|
||||||
|
|
||||||
<bundle name="wwwroot/bundles/checkout-bundle.min.css" />
|
<bundle name="wwwroot/bundles/checkout-bundle.min.css" />
|
||||||
|
|
|
@ -2,6 +2,14 @@
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Create an invoice";
|
ViewData["Title"] = "Create an invoice";
|
||||||
}
|
}
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
$("#create-invoice-form").on("submit",
|
||||||
|
function() {
|
||||||
|
$(this).find("input[type='submit']").prop('disabled', true);
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
<section>
|
<section>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -12,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<form asp-action="CreateInvoice" method="post">
|
<form asp-action="CreateInvoice" method="post" id="create-invoice-form">
|
||||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Amount" class="control-label"></label>*
|
<label asp-for="Amount" class="control-label"></label>*
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Invoice " + Model.Id;
|
ViewData["Title"] = "Invoice " + Model.Id;
|
||||||
}
|
}
|
||||||
|
@section HeaderContent{
|
||||||
|
<META NAME="robots" CONTENT="noindex,nofollow">
|
||||||
|
}
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.linethrough {
|
.linethrough {
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
<bundle name="wwwroot/bundles/main-bundle.min.js" />
|
||||||
|
|
||||||
@RenderSection("HeadScripts", required: false)
|
@RenderSection("HeadScripts", required: false)
|
||||||
|
@RenderSection("HeaderContent", false)
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="page-top">
|
<body id="page-top">
|
||||||
|
|
Loading…
Add table
Reference in a new issue