updated layout
This commit is contained in:
@@ -3,18 +3,25 @@
|
|||||||
ViewData["Title"] = "TV7 Playlist";
|
ViewData["Title"] = "TV7 Playlist";
|
||||||
}
|
}
|
||||||
|
|
||||||
<div class="text-center">
|
<table class="table table-hover table-striped">
|
||||||
<h1 class="display-4">Welcome</h1>
|
<tr>
|
||||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
<th>Position</th>
|
||||||
</div>
|
<th>Number</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Name override</th>
|
||||||
|
<th>Enabled</th>
|
||||||
|
<th>URL</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<table>
|
@{
|
||||||
@{
|
|
||||||
foreach (var track in Model.Tracks)
|
foreach (var track in Model.Tracks)
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td>@track.Id</td>
|
<td>@track.Id</td>
|
||||||
<td>@track.Name</td>
|
<td>@track.Name</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
<td>@track.Url</td>
|
<td>@track.Url</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
@@ -1,25 +0,0 @@
|
|||||||
@using Microsoft.AspNetCore.Http.Features
|
|
||||||
|
|
||||||
@{
|
|
||||||
var consentFeature = Context.Features.Get<ITrackingConsentFeature>();
|
|
||||||
var showBanner = !consentFeature?.CanTrack ?? false;
|
|
||||||
var cookieString = consentFeature?.CreateConsentCookie();
|
|
||||||
}
|
|
||||||
|
|
||||||
@if (showBanner)
|
|
||||||
{
|
|
||||||
<div id="cookieConsent" class="alert alert-info alert-dismissible fade show" role="alert">
|
|
||||||
Use this space to summarize your privacy and cookie use policy.
|
|
||||||
<button type="button" class="accept-policy close" data-dismiss="alert" aria-label="Close" data-cookie-string="@cookieString">
|
|
||||||
<span aria-hidden="true">Accept</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
(function () {
|
|
||||||
var button = document.querySelector("#cookieConsent button[data-cookie-string]");
|
|
||||||
button.addEventListener("click", function (event) {
|
|
||||||
document.cookie = button.dataset.cookieString;
|
|
||||||
}, false);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
}
|
|
@@ -31,9 +31,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<partial name="_CookieConsentPartial"/>
|
|
||||||
<main role="main" class="pb-3">
|
<main role="main" class="pb-3">
|
||||||
@RenderBody()
|
@RenderBody()
|
||||||
</main>
|
</main>
|
||||||
|
Reference in New Issue
Block a user