aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Pages/_Layout.cshtml
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-12-22 14:44:26 +0100
committerivarlovlie <git@ivarlovlie.no>2022-12-22 14:44:26 +0100
commit58ef5833b3f77f321c587dd86448c888029016ce (patch)
treefe5e6f47781573cc1fb5938f9b8cd8b51022946a /code/api/Pages/_Layout.cshtml
parent82ade3c31fb17b662feec59e9e654ceb66edbb7a (diff)
downloadstorage-58ef5833b3f77f321c587dd86448c888029016ce.tar.xz
storage-58ef5833b3f77f321c587dd86448c888029016ce.zip
feat: Many things
- Working Login/Logout - Groundwork for web components - Loading web-components with version tag - Load temporal-polyfill globally
Diffstat (limited to 'code/api/Pages/_Layout.cshtml')
-rw-r--r--code/api/Pages/_Layout.cshtml18
1 files changed, 18 insertions, 0 deletions
diff --git a/code/api/Pages/_Layout.cshtml b/code/api/Pages/_Layout.cshtml
index 022e41e..d587a07 100644
--- a/code/api/Pages/_Layout.cshtml
+++ b/code/api/Pages/_Layout.cshtml
@@ -9,8 +9,26 @@
<title>@ViewData["Title"] - Storage</title>
</head>
<body>
+@if (User.Identity?.IsAuthenticated ?? false) {
+ <header>
+ <nav>
+ <div class="left">
+ <a href="/home">Home</a>
+ </div>
+ <div class="right">
+ <profile-modal/>
+ </div>
+ </nav>
+ </header>
+}
@RenderBody()
+<script src="~/scripts/module.mjs" asp-append-version="true" type="module"></script>
+<script src="~/scripts/helpers.js" asp-append-version="true"></script>
<script src="~/scripts/base.js" asp-append-version="true"></script>
+@if (User.Identity?.IsAuthenticated ?? false) {
+ <script src="~/scripts/logged-in-base.js" asp-append-version="true"></script>
+ <script src="~/scripts/components/index.js" asp-append-version="true"></script>
+}
@await RenderSectionAsync("Scripts", false)
</body>
</html> \ No newline at end of file