This repository was archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path_Header.cshtml
More file actions
50 lines (49 loc) · 2.18 KB
/
_Header.cshtml
File metadata and controls
50 lines (49 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer LayoutLocalizer
<header class="header">
<div class="container header--container">
<div class="header--brand">
<a class="header--site-name" asp-area="" asp-page="/Index">Codidact</a>
</div>
<div class="header--menu">
<a class="header--item" href="#">@LayoutLocalizer["Questions_title"]</a>
<a class="header--item" href="#">@LayoutLocalizer["Tags_title"]</a>
<a class="header--item" href="#">@LayoutLocalizer["Users_title"]</a>
<div class="header--separator"></div>
@if (!User.Identity.IsAuthenticated)
{
<a class="header--item" asp-page="/Login">@LayoutLocalizer["Sign_in_button"]</a>
}
else
{
<form method="post" asp-page="/Logout">
<button class="header--item" type="submit">@LayoutLocalizer["Sign_out_button"]</button>
</form>
}
<a class="header--item" href="https://github.com/codidact/core">@LayoutLocalizer["On_github_button"]</a>
<a class="header--item is-mobile-menu is-complex" data-trigger-header-slide="#js-hms" href="#!">
<span class="header--menu-bars">
<span></span>
<span></span>
<span></span>
</span>
</a>
</div>
</div>
</header>
<aside class="header-slide" id="js-hms">
<a class="header-slide--item" href="#">@LayoutLocalizer["Questions_title"]</a>
<a class="header-slide--item" href="#">@LayoutLocalizer["Tags_title"]</a>
<a class="header-slide--item" href="#">@LayoutLocalizer["Users_title"]</a>
<div class="header-slide--separator"></div>
@if (User.Identity.IsAuthenticated)
{
<a class="header-slide--item" asp-page="/Logout">@LayoutLocalizer["Sign_out_button"]</a>
}
else
{
<a class="header-slide--item" asp-page="/Login">>@LayoutLocalizer["Sign_in_button"]</a>
}
<a class="header-slide--item" href="https://github.com/codidact/core">@LayoutLocalizer["On_github_button"]</a>
</aside>
<partial name="CategoryHeader" />