feat: create partial for spinner, register as handlebars template
This commit is contained in:
parent
06fab21cd5
commit
95b7ed0ae7
@ -2,11 +2,7 @@
|
|||||||
@model OliverBooth.Pages.Blog.Index
|
@model OliverBooth.Pages.Blog.Index
|
||||||
|
|
||||||
<div id="all-blog-posts">
|
<div id="all-blog-posts">
|
||||||
<div id="blog-loading-spinner" class="d-flex justify-content-center">
|
@await Html.PartialAsync("_LoadingSpinner")
|
||||||
<div class="spinner-border text-light" role="status">
|
|
||||||
<p class="text-center sr-only">Loading...</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script id="blog-post-template" type="text/x-handlebars-template">
|
<script id="blog-post-template" type="text/x-handlebars-template">
|
||||||
|
@ -74,6 +74,10 @@
|
|||||||
<script src="~/js/prism.min.js" asp-append-version="true" data-manual></script>
|
<script src="~/js/prism.min.js" asp-append-version="true" data-manual></script>
|
||||||
<script src="~/js/app.min.js" asp-append-version="true"></script>
|
<script src="~/js/app.min.js" asp-append-version="true"></script>
|
||||||
|
|
||||||
|
<script id="loading-spinner-template" type="text/x-handlebars-template">
|
||||||
|
@await Html.PartialAsync("_LoadingSpinner")
|
||||||
|
</script>
|
||||||
|
|
||||||
@await RenderSectionAsync("Scripts", required: false)
|
@await RenderSectionAsync("Scripts", required: false)
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
5
OliverBooth/Pages/Shared/_LoadingSpinner.cshtml
Normal file
5
OliverBooth/Pages/Shared/_LoadingSpinner.cshtml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<div id="blog-loading-spinner" class="d-flex justify-content-center">
|
||||||
|
<div class="spinner-border text-light" role="status">
|
||||||
|
<p class="text-center sr-only">Loading...</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user