1
+ @using YAF .Core .Context
2
+ @using YAF .Core .Extensions
3
+ @using YAF .Core .Services
4
+
5
+ @inject BoardContext Current
6
+
7
+ <!DOCTYPE html>
8
+ <html lang =" en" >
9
+ <head >
10
+ <meta charset =" utf-8" />
11
+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
12
+ <title >@ViewData ["Title"] - YAF.SampleApp</title >
13
+ <link rel =" stylesheet" href =" @Html.Raw(Current.Get<ITheme>().BuildThemePath(" bootstrap-forum.min.css " ))"
14
+ type =" text/css" asp-append-version =" true" />
15
+ <link href =" ~/favicons/apple-touch-icon.png" rel =" apple-touch-icon" sizes =" 180x180" />
16
+ <link href =" ~/favicons/favicon-32x32.png" rel =" icon" sizes =" 32x32" />
17
+ <link href =" ~/favicons/favicon-16x16.png" rel =" icon" sizes =" 16x16" />
18
+ <link href =" ~/favicons/site.webmanifest" rel =" manifest" />
19
+ <link href =" ~/favicons/safari-pinned-tab.svg" rel =" mask-icon" color =" #5bbad5" />
20
+ <link href =" ~/favicons/favicon.ico" rel =" shortcut icon" />
21
+ </head >
22
+ <body >
23
+ <header >
24
+ <nav class =" navbar navbar-expand-sm navbar-toggleable-sm border-bottom box-shadow mb-3" >
25
+ <div class =" container" >
26
+ <a class =" navbar-brand" asp-area =" " asp-page =" /Index" >YAF.SampleApp</a >
27
+ <button class =" navbar-toggler" type =" button" data-bs-toggle =" collapse" data-bs-target =" .navbar-collapse" aria-controls =" navbarSupportedContent"
28
+ aria-expanded =" false" aria-label =" Toggle navigation" >
29
+ <span class =" navbar-toggler-icon" ></span >
30
+ </button >
31
+ <div class =" navbar-collapse collapse d-sm-inline-flex justify-content-between" >
32
+ <ul class =" navbar-nav flex-grow-1" >
33
+ <li class =" nav-item" >
34
+ <a class =" nav-link" asp-area =" " asp-page =" /Index" >Home</a >
35
+ </li >
36
+ <li class =" nav-item" >
37
+ <a class =" nav-link" asp-area =" Forums" asp-page =" /Index" >Forums</a >
38
+ </li >
39
+ <li class =" nav-item" >
40
+ <a class =" nav-link" asp-area =" Chat" asp-page =" /Index" >Chat</a >
41
+ </li >
42
+ </ul >
43
+ <div class =" form-inline mt-2 mt-md-0" >
44
+ @if (Current .IsGuest )
45
+ {
46
+ <a class =" btn btn-outline-success my-2 my-sm-0 me-sm-2" asp-page =" /Account/#" asp-area =" Forums" >Login </a >
47
+ <a class =" btn btn-outline-success my-2 my-sm-0" asp-page =" @(Current.BoardSettings.ShowRulesForRegistration ? " /Privacy " : " /Account /Register " )" asp-area =" Forums" >Register </a >
48
+ }
49
+ else
50
+ {
51
+ @( " Welcome " ) <span class =" fw-bold" >@HtmlEncoder.Encode(Current.PageUser.DisplayOrUserName()) </span >
52
+ <a class =" btn btn-outline-secondary"
53
+ role =" button"
54
+ href =" javascript:LogOutClick()"
55
+ aria-label =" sign-out-alt" >Logout
56
+ </a >
57
+ }
58
+ </div >
59
+ </div >
60
+ </div >
61
+ </nav >
62
+ </header >
63
+ <div class =" container" >
64
+ <main role =" main" class =" pb-3" >
65
+ @RenderBody()
66
+ </main >
67
+ </div >
68
+
69
+ <footer class =" border-top footer text-muted" >
70
+ <div class =" container" >
71
+ © ; 2024 - YAF.SampleApp
72
+ </div >
73
+ </footer >
74
+
75
+ <script src =" @(Current.Get<BoardInfo>().GetUrlToScripts(" forumExtensions.min.js " ))" asp-append-version =" true" ></script >
76
+
77
+ @if (! Current .IsGuest )
78
+ {
79
+ @await Html .PartialAsync (" _LogoutConfirm" )
80
+ }
81
+
82
+ @await RenderSectionAsync("Scripts", required: false)
83
+ </body >
84
+ </html >
0 commit comments