Advertisement
Guest User

Untitled

a guest
Jan 26th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  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 - Aplicação Teste</title>
  8.  
  9. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  10. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
  11. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  12.  
  13. @Styles.Render("~/Content/css")
  14. @Scripts.Render("~/bundles/modernizr")
  15.  
  16. </head>
  17. <body>
  18. <div class="navbar navbar-inverse navbar-fixed-top">
  19. <div class="container">
  20. <div class="navbar-header">
  21. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. <span class="icon-bar"></span>
  25. </button>
  26. @Html.ActionLink("Nome do aplicativo", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
  27. </div>
  28. <div class="navbar-collapse collapse">
  29. <ul class="nav navbar-nav">
  30.  
  31. @if (HttpContext.Current.User.IsInRole("Admin"))
  32. {
  33. <li>@Html.ActionLink("Início", "Index", "Home")</li>
  34. <li>@Html.ActionLink("Relatorios", "Relatorios", "Home")</li>
  35. <li>@Html.ActionLink("Cadastros", "Cadastros", "Home")</li>
  36. <li>@Html.ActionLink("Contato", "Contatos", "Home")</li>
  37. }
  38.  
  39. @if (HttpContext.Current.User.IsInRole("Premium"))
  40. {
  41. <li>@Html.ActionLink("Início", "Index", "Home")</li>
  42. <li>@Html.ActionLink("Sobre", "About", "Home")</li>
  43. <li>@Html.ActionLink("Contato", "Contatos", "Home")</li>
  44. }
  45. else
  46. {
  47. <li>@Html.ActionLink("Sobre", "About", "Home")</li>
  48.  
  49. }
  50.  
  51. </ul>
  52. @Html.Partial("_LoginPartial")
  53. </div>
  54. </div>
  55. </div>
  56. <div class="container body-content">
  57. @RenderBody()
  58. <hr />
  59. <footer>
  60. <p>&copy; @DateTime.Now.Year - Projeto Andrêy Ferraz</p>
  61. </footer>
  62. </div>
  63. @Scripts.Render("~/bundles/jquery-3.3.1.js")
  64. @Scripts.Render("~/bundles/bootstrap.js")
  65. @RenderSection("scripts", required: false)
  66. </body>
  67. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement