Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>@ViewBag.Title - My ASP.NET Application</title>
- @Styles.Render("~/Content/css")
- @Scripts.Render("~/bundles/modernizr")
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- @Html.ActionLink("Jobs Network", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
- </div>
- <div class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li>@Html.ActionLink("Home", "Index", "Home")</li>
- <li>@Html.ActionLink("About", "About", "Home")</li>
- <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
- <li>@Html.ActionLink("JobOffers", "AllJobOffers", "JobOffer")</li>
- @if (!Request.IsAuthenticated)
- {
- <li>@Html.ActionLink("Company sign up", "Create", "Company")</li>
- <li>@Html.ActionLink("Applicant sign up", "Create", "Applicant")</li>
- <li>@Html.ActionLink("Sign in", "Login", "Account"))</li>
- }
- @if (Request.IsAuthenticated)
- {
- if (User.IsInRole("Applicant"))
- {
- <li>
- @Html.ActionLink("Profile", "Update", "Applicant")
- </li>
- }
- else
- {
- <li>
- @Html.ActionLink("Profile", "Update", "Company")
- </li>
- <li>
- @Html.ActionLink("My offers", "AllJobOffers", "JobOffer")
- </li>
- }
- <li>
- @Html.ActionLink("Logout", "Logout", "Account")
- </li>
- }
- </ul>
- </div>
- </div>
- </div>
- <div class="container body-content">
- @RenderBody()
- <hr />
- <footer>
- <p>© @DateTime.Now.Year - My
- ASP.NET Application</p>
- </footer>
- </div>
- @Scripts.Render("~/bundles/jquery")
- @Scripts.Render("~/bundles/bootstrap")
- @RenderSection("scripts", required: false)
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement