| | 1 | | @using Microsoft.AspNetCore.Hosting |
| | 2 | | @using Microsoft.AspNetCore.Mvc.ViewEngines |
| | 3 | | @inject IWebHostEnvironment Environment |
| | 4 | | @inject ICompositeViewEngine Engine |
| | 5 | | <!DOCTYPE html> |
| | 6 | | <html> |
| | 7 | | <head> |
| | 8 | | <meta charset="utf-8" /> |
| | 9 | | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 0 | 10 | | <title>@ViewData["Title"] - MUNity</title> |
| | 11 | | <link rel="stylesheet" href="~/css/material/app.min.css" /> |
| | 12 | | @*<link rel="stylesheet" href="~/Identity/lib/bootstrap/dist/css/bootstrap.min.css" /> |
| | 13 | | <link rel="stylesheet" href="~/Identity/css/site.css" />*@ |
| | 14 | | </head> |
| | 15 | | <body class="pace-top"> |
| | 16 | | <div class="app" id="app"> |
| 0 | 17 | | @RenderBody() |
| | 18 | | </div> |
| | 19 | | @*<header> |
| | 20 | | <nav class="navbar navbar-expand-sm navbar-light navbar-toggleable-sm bg-white border-bottom box-shadow mb-3"> |
| | 21 | | <div class="container"> |
| | 22 | | <a class="navbar-brand" href="~/">MUNity</a> |
| | 23 | | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria- |
| | 24 | | aria-expanded="false" aria-label="Toggle navigation"> |
| | 25 | | <span class="navbar-toggler-icon"></span> |
| | 26 | | </button> |
| | 27 | | <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse"> |
| | 28 | | @{ |
| | 29 | | var result = Engine.FindView(ViewContext, "_LoginPartial", isMainPage: false); |
| | 30 | | } |
| | 31 | | @if (result.Success) |
| | 32 | | { |
| | 33 | | await Html.RenderPartialAsync("_LoginPartial"); |
| | 34 | | } |
| | 35 | | else |
| | 36 | | { |
| | 37 | | throw new InvalidOperationException("The default Identity UI layout requires a partial view '_Lo |
| | 38 | | "usually located at '/Pages/_LoginPartial' or at '/Views/Shared/_LoginPartial' to work. Base |
| | 39 | | $"we have looked at it in the following locations: {System.Environment.NewLine}{string.Join( |
| | 40 | | } |
| | 41 | | </div> |
| | 42 | | </div> |
| | 43 | | </nav> |
| | 44 | | </header>*@ |
| | 45 | | <script src="~/Identity/lib/jquery/dist/jquery.min.js"></script> |
| | 46 | | <script src="~/Identity/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script> |
| | 47 | | <script src="~/Identity/js/site.js" asp-append-version="true"></script> |
| 0 | 48 | | @RenderSection("Scripts", required: false) |
| | 49 | | </body> |
| | 50 | | </html> |