From 95b7ed0ae7c61b71fdb91cbcfecf867f65cc736c Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 02:06:31 +0100 Subject: [PATCH] feat: create partial for spinner, register as handlebars template --- OliverBooth/Pages/Blog/Index.cshtml | 6 +----- OliverBooth/Pages/Shared/_Layout.cshtml | 4 ++++ OliverBooth/Pages/Shared/_LoadingSpinner.cshtml | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 OliverBooth/Pages/Shared/_LoadingSpinner.cshtml diff --git a/OliverBooth/Pages/Blog/Index.cshtml b/OliverBooth/Pages/Blog/Index.cshtml index 518bab7..be94910 100644 --- a/OliverBooth/Pages/Blog/Index.cshtml +++ b/OliverBooth/Pages/Blog/Index.cshtml @@ -2,11 +2,7 @@ @model OliverBooth.Pages.Blog.Index
-
-
-

Loading...

-
-
+ @await Html.PartialAsync("_LoadingSpinner")
+ + @await RenderSectionAsync("Scripts", required: false) \ No newline at end of file diff --git a/OliverBooth/Pages/Shared/_LoadingSpinner.cshtml b/OliverBooth/Pages/Shared/_LoadingSpinner.cshtml new file mode 100644 index 0000000..9b421f3 --- /dev/null +++ b/OliverBooth/Pages/Shared/_LoadingSpinner.cshtml @@ -0,0 +1,5 @@ +
+
+

Loading...

+
+
\ No newline at end of file