Advertisement
Guest User

Duk1

a guest
Jul 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <style>
  3. @@media only screen and (min-width : 992px) {
  4. .nav-item:hover, .account1:hover {
  5. border-bottom: 1.5px solid orange !important;
  6. transition: cubic-bezier();
  7. transition-duration: 0.6s;
  8. }
  9. }
  10.  
  11.  
  12. .nav-bar{
  13. height:70px !important;
  14.  
  15. }
  16.  
  17. </style>
  18. <html>
  19. <head>
  20. <meta charset="utf-8" />
  21. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  22. <title>@ViewBag.Title</title>
  23. @Styles.Render("~/Content/css")
  24. @Scripts.Render("~/bundles/modernizr")
  25. <link href="~/Content/Chosen/chosen.min.css" rel="stylesheet" />
  26.  
  27. </head>
  28.  
  29.  
  30. <body class="pt-0 container">
  31. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  32. <a class="navbar-brand" href="#">@Html.ActionLink("Почетна", "Index", "Home", new { area = "" }, new { @class = "navbar-brand brend nav-link mr-2" })</a>
  33. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  34. <span class="navbar-toggler-icon"></span>
  35. </button>
  36.  
  37. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  38. <ul class="navbar-nav mr-auto">
  39. <li class="nav-item mr-2">
  40. @if (User.Identity.IsAuthenticated)
  41. {
  42. @Html.ActionLink("Мој возења", "Index", "MyListTravelings", routeValues: null, htmlAttributes: new { @class= "text-decoration-none text-dark" })
  43. }
  44.  
  45. </li>
  46. <li class="nav-item ">
  47. @Html.ActionLink("Сите возења", "Index", "ListTravelings", routeValues: null, htmlAttributes: new { @class = "text-decoration-none text-dark" })
  48. </li>
  49. </ul>
  50. @Html.Partial("_LoginPartial")
  51. </div>
  52. </nav>
  53.  
  54. <div class="container body-content">
  55. @RenderBody()
  56. <hr />
  57. <footer class="navbar fixed-bottom ">
  58. <h4 class="text-center">Проектна задача &copy;</h4>
  59. </footer>
  60. </div>
  61.  
  62. @Scripts.Render("~/bundles/jquery")
  63. @Scripts.Render("~/bundles/bootstrap")
  64. <script src="~/Scripts/chosen.jquery.min.js"></script> @*novo*@
  65. @RenderSection("scripts", required: false)
  66. </body>
  67. </html>
  68.  
  69.  
  70.  
  71.  
  72. @using Microsoft.AspNet.Identity
  73. @if (Request.IsAuthenticated) {
  74. using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) {
  75. @Html.AntiForgeryToken()
  76.  
  77. <ul class="nav navbar-nav navbar-right">
  78. <li class="mr-2 nav-item">@Html.ActionLink("Здраво " + User.Identity.GetUserName(), "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage", @class= "account1 text-decoration-none text-success font-weight-bold nav-item" })</li>
  79. <li class="nav-item"><a href="javascript:document.getElementById('logoutForm').submit()" class="account1 nav-item text-danger font-weight-bold text-decoration-none" >Одјави се</a></li>
  80. </ul>
  81. }
  82. }
  83. else {
  84. <ul class="navbar-nav ml-auto">
  85. <li>@Html.ActionLink("Регистрирај се", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink", @class = "nav-item account1 text-primary font-weight-bold text-decoration-none mr-2 " })</li>
  86. <li>@Html.ActionLink("Најави се", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", @class = "nav-item text-decoration-none account1 text-success font-weight-bold" })</li>
  87. </ul>
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement