Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <style>
- @@media only screen and (min-width : 992px) {
- .nav-item:hover, .account1:hover {
- border-bottom: 1.5px solid orange !important;
- transition: cubic-bezier();
- transition-duration: 0.6s;
- }
- }
- .nav-bar{
- height:70px !important;
- }
- </style>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>@ViewBag.Title</title>
- @Styles.Render("~/Content/css")
- @Scripts.Render("~/bundles/modernizr")
- <link href="~/Content/Chosen/chosen.min.css" rel="stylesheet" />
- </head>
- <body class="pt-0 container">
- <nav class="navbar navbar-expand-lg navbar-light bg-light">
- <a class="navbar-brand" href="#">@Html.ActionLink("Почетна", "Index", "Home", new { area = "" }, new { @class = "navbar-brand brend nav-link mr-2" })</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav mr-auto">
- <li class="nav-item mr-2">
- @if (User.Identity.IsAuthenticated)
- {
- @Html.ActionLink("Мој возења", "Index", "MyListTravelings", routeValues: null, htmlAttributes: new { @class= "text-decoration-none text-dark" })
- }
- </li>
- <li class="nav-item ">
- @Html.ActionLink("Сите возења", "Index", "ListTravelings", routeValues: null, htmlAttributes: new { @class = "text-decoration-none text-dark" })
- </li>
- </ul>
- @Html.Partial("_LoginPartial")
- </div>
- </nav>
- <div class="container body-content">
- @RenderBody()
- <hr />
- <footer class="navbar fixed-bottom ">
- <h4 class="text-center">Проектна задача ©</h4>
- </footer>
- </div>
- @Scripts.Render("~/bundles/jquery")
- @Scripts.Render("~/bundles/bootstrap")
- <script src="~/Scripts/chosen.jquery.min.js"></script> @*novo*@
- @RenderSection("scripts", required: false)
- </body>
- </html>
- @using Microsoft.AspNet.Identity
- @if (Request.IsAuthenticated) {
- using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) {
- @Html.AntiForgeryToken()
- <ul class="nav navbar-nav navbar-right">
- <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>
- <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>
- </ul>
- }
- }
- else {
- <ul class="navbar-nav ml-auto">
- <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>
- <li>@Html.ActionLink("Најави се", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink", @class = "nav-item text-decoration-none account1 text-success font-weight-bold" })</li>
- </ul>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement