aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Pages/Shared/Components/Header
diff options
context:
space:
mode:
authorivar <i@oiee.no>2024-03-19 01:02:22 +0100
committerivar <i@oiee.no>2024-03-19 01:02:22 +0100
commit5f604b3052dab1d51dc130df2470bf330b283ec6 (patch)
treeae00e1fe4542850467555b4e3af41964ba8d878b /code/api/Pages/Shared/Components/Header
parent63cf177e8cf22e349534664d59a6926f8b36863d (diff)
downloadstorage-5f604b3052dab1d51dc130df2470bf330b283ec6.tar.xz
storage-5f604b3052dab1d51dc130df2470bf330b283ec6.zip
Max lenghts on db schema
Use latest temporal from cdn Implement majority of translation functionality Major refinements/bugs
Diffstat (limited to 'code/api/Pages/Shared/Components/Header')
-rw-r--r--code/api/Pages/Shared/Components/Header/Default.cshtml2
-rw-r--r--code/api/Pages/Shared/Components/Header/Header.cs11
2 files changed, 13 insertions, 0 deletions
diff --git a/code/api/Pages/Shared/Components/Header/Default.cshtml b/code/api/Pages/Shared/Components/Header/Default.cshtml
new file mode 100644
index 0000000..8234a97
--- /dev/null
+++ b/code/api/Pages/Shared/Components/Header/Default.cshtml
@@ -0,0 +1,2 @@
+@model Quality.Storage.Api.Pages.Shared.Components.Header.Header
+
diff --git a/code/api/Pages/Shared/Components/Header/Header.cs b/code/api/Pages/Shared/Components/Header/Header.cs
new file mode 100644
index 0000000..ad0b75b
--- /dev/null
+++ b/code/api/Pages/Shared/Components/Header/Header.cs
@@ -0,0 +1,11 @@
+namespace Quality.Storage.Api.Pages.Shared.Components.Header;
+
+public class Header(IStringLocalizer<SharedResources> localizer) : ViewComponent
+{
+ public string Home { get; set; }
+ private readonly IStringLocalizer<SharedResources> _localizer = localizer;
+
+ public async Task<IViewComponentResult> InvokeAsync() {
+ return View();
+ }
+}