_AppLayout.cshtml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. @{
  2. Layout = null;
  3. var controllerName = ViewContext.RouteData.Values["controller"].ToString();
  4. var actionName = ViewContext.RouteData.Values["action"].ToString();
  5. }
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta charset="utf-8">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta name="viewport" content="width=device-width, initial-scale=1">
  12. <meta name="description" content="">
  13. <meta name="author" content="">
  14. <title>@ViewBag.Title</title>
  15. @Styles.Render("~/Content/fontawesome")
  16. @Styles.Render("~/Content/css")
  17. </head>
  18. <body>
  19. <h1>
  20. <a href="@Url.Action("Index", "Home")">
  21. <span class="glyphicon glyphicon-home"></span> <!-- Exemple de Glyphicon Bootstrap -->
  22. <i class="fa fa-rocket" aria-hidden="true"></i> <!-- Exemple d'icône fontAwesome -->
  23. Application Modèle
  24. </a>
  25. </h1>
  26. <hr />
  27. <div>
  28. @RenderBody()
  29. </div>
  30. @Scripts.Render("~/bundles/jquery")
  31. @Scripts.Render("~/bundles/bootstrap")
  32. </body>
  33. </html>