SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>@ViewBag.Title - My ASP.NET Application</title>
  7.     @Styles.Render("~/Content/css")
  8.     @Scripts.Render("~/bundles/modernizr")
  9. </head>
  10. <body>
  11. <div class="navbar navbar-inverse navbar-fixed-top">
  12.     <div class="container">
  13.         <div class="navbar-header">
  14.             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  15.                 <span class="icon-bar"></span>
  16.                 <span class="icon-bar"></span>
  17.                 <span class="icon-bar"></span>
  18.             </button>
  19.             @Html.ActionLink("Jobs Network", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
  20.         </div>
  21.         <div class="navbar-collapse collapse">
  22.             <ul class="nav navbar-nav">
  23.                 <li>@Html.ActionLink("Home", "Index", "Home")</li>
  24.                 <li>@Html.ActionLink("About", "About", "Home")</li>
  25.                 <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
  26.                 <li>@Html.ActionLink("JobOffers", "AllJobOffers", "JobOffer")</li>
  27.  
  28.                 @if (!Request.IsAuthenticated)
  29.                 {
  30.                     <li>@Html.ActionLink("Company sign up", "Create", "Company")</li>
  31.                     <li>@Html.ActionLink("Applicant sign up", "Create", "Applicant")</li>
  32.                     <li>@Html.ActionLink("Sign in", "Login", "Account"))</li>
  33.                 }
  34.                 @if (Request.IsAuthenticated)
  35.                 {
  36.                     if (User.IsInRole("Applicant"))
  37.                     {
  38.                         <li>
  39.                             @Html.ActionLink("Profile", "Update", "Applicant")
  40.                         </li>
  41.                     }
  42.                     else
  43.                     {
  44.                         <li>
  45.                             @Html.ActionLink("Profile", "Update", "Company")
  46.                         </li>
  47.                         <li>
  48.                             @Html.ActionLink("My offers", "AllJobOffers", "JobOffer")
  49.                         </li>
  50.                     }
  51.                     <li>
  52.                         @Html.ActionLink("Logout", "Logout", "Account")
  53.                     </li>
  54.                 }
  55.             </ul>
  56.            
  57.         </div>
  58.  
  59.     </div>
  60. </div>
  61. <div class="container body-content">
  62.     @RenderBody()
  63.     <hr />
  64.     <footer>
  65.         <p>&copy; @DateTime.Now.Year - My
  66.             ASP.NET Application</p>
  67.     </footer>
  68. </div>
  69.  
  70. @Scripts.Render("~/bundles/jquery")
  71. @Scripts.Render("~/bundles/bootstrap")
  72. @RenderSection("scripts", required: false)
  73. </body>
  74. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top