_Layout.cshtml 1.4 KB

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