You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Layout.cshtml 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width" />
  6. <title>@ViewBag.Title</title>
  7. @Styles.Render("~/Content/css")
  8. @Scripts.Render("~/bundles/modernizr")
  9. </head>
  10. <body>
  11. <div class="navbar navbar-inverse navbar-fixed-top">
  12. <div class="container">
  13. <div class="navbar-header">
  14. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  15. <span class="icon-bar"></span>
  16. <span class="icon-bar"></span>
  17. <span class="icon-bar"></span>
  18. </button>
  19. @Html.ActionLink("Application name", "Index", "Home", null, new { @class = "navbar-brand" })
  20. </div>
  21. <div class="navbar-collapse collapse">
  22. <ul class="nav navbar-nav">
  23. <li>@Html.ActionLink("Home", "Index", "Home", new { area = "" }, null)</li>
  24. <li>@Html.ActionLink("API", "Index", "Help", new { area = "" }, null)</li>
  25. </ul>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="container body-content">
  30. @RenderBody()
  31. <hr />
  32. <footer>
  33. <p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
  34. </footer>
  35. </div>
  36. @Scripts.Render("~/bundles/jquery")
  37. @Scripts.Render("~/bundles/bootstrap")
  38. @RenderSection("scripts", required: false)
  39. </body>
  40. </html>