_Layout.cshtml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>@ViewData["Title"] - CSCoreRedis</title>
  7. <environment include="Development">
  8. <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
  9. <link rel="stylesheet" href="~/css/site.css" />
  10. </environment>
  11. <environment exclude="Development">
  12. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
  13. asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
  14. asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
  15. <link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
  16. </environment>
  17. </head>
  18. <body>
  19. <nav class="navbar navbar-inverse navbar-fixed-top">
  20. <div class="container">
  21. <div class="navbar-header">
  22. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  23. <span class="sr-only">Toggle navigation</span>
  24. <span class="icon-bar"></span>
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. </button>
  28. <a asp-page="/Index" class="navbar-brand">CSCoreRedis</a>
  29. </div>
  30. <div class="navbar-collapse collapse">
  31. <ul class="nav navbar-nav">
  32. <li><a asp-page="/Index">Home</a></li>
  33. <li><a asp-page="/About">About</a></li>
  34. <li><a asp-page="/Contact">Contact</a></li>
  35. </ul>
  36. </div>
  37. </div>
  38. </nav>
  39. <partial name="_CookieConsentPartial" />
  40. <div class="container body-content">
  41. @RenderBody()
  42. <hr />
  43. <footer>
  44. <p>&copy; 2019 - CSCoreRedis</p>
  45. </footer>
  46. </div>
  47. <environment include="Development">
  48. <script src="~/lib/jquery/dist/jquery.js"></script>
  49. <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
  50. <script src="~/js/site.js" asp-append-version="true"></script>
  51. </environment>
  52. <environment exclude="Development">
  53. <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
  54. asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
  55. asp-fallback-test="window.jQuery"
  56. crossorigin="anonymous"
  57. integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT">
  58. </script>
  59. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
  60. asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
  61. asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
  62. crossorigin="anonymous"
  63. integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd">
  64. </script>
  65. <script src="~/js/site.min.js" asp-append-version="true"></script>
  66. </environment>
  67. @RenderSection("Scripts", required: false)
  68. </body>
  69. </html>