Advertisement
Guest User

Untitled

a guest
Dec 5th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.44 KB | None | 0 0
  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 Biuro podróży</title>
  7.     <link href="@Url.Content("~/Content/site-specific.css")" rel="stylesheet" type="text/css" />
  8.     <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  9.     <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
  10.     <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  11.     <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  12.     <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")"></script>
  13.     @Styles.Render("~/Content/css")
  14.     @Scripts.Render("~/bundles/modernizr")
  15.  
  16.  
  17.     <!--This bundle was moved by the Telerik VS Extensions for compatibility reasons-->
  18.     @Scripts.Render("~/bundles/jquery")
  19.  
  20.    
  21. </head>
  22. <body>
  23.     <div style="font-size: medium"class="navbar navbar-inverse navbar-fixed-top">
  24.         <div class="container">
  25.             <div style="font-family: lobster; font-size: large"class="navbar-header">
  26.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  27.                     <span class="icon-bar"></span>
  28.                     <span class="icon-bar"></span>
  29.                     <span class="icon-bar"></span>
  30.                     <span class="icon-bar"></span>
  31.                 </button>
  32.            
  33.                 @Html.ActionLink("Biuro podróży", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
  34.  
  35.  
  36.           </div>
  37.             <div class="navbar-collapse collapse">
  38.                 <div class="box">
  39.  
  40.                     <ul class="nav navbar-nav">
  41.                         <li>@Html.ActionLink("Strona główna", "Index", "Home")</li>
  42.                         <li><a href="#LastMinute">Last minute!</a></li>
  43.                         <li>@Html.ActionLink("O nas", "About", "Home")</li>
  44.                         <li>@Html.ActionLink("Skontakuj się z nami", "Contact", "Home")</li>
  45.  
  46.                     </ul>
  47.                 </div>
  48.                 @Html.Partial("_LoginPartial")
  49.             </div>
  50.        
  51.             <script>
  52.     $("li").click(function () {
  53.         // If this isn't already active
  54.         if (!$(this).hasClass("active")) {
  55.             // Remove the class from anything that is active
  56.             $("li.active").removeClass("active");
  57.             // And make this active
  58.             $(this).addClass("active");
  59.         }
  60.     });
  61.             </script>
  62.         </div>
  63.     </div>
  64. <div class="container body-content">
  65.  
  66.     @RenderBody()
  67.     <hr/>
  68.  
  69.    
  70.  
  71.  
  72.     <footer style="text-align: center;">
  73.         <p>&copy; @DateTime.Now.Year - Daniel Dziubecki</p>
  74.  
  75.         @if (User.Identity.IsAuthenticated)
  76.         {
  77.             if (User.IsInRole("Admin"))
  78.             {
  79.                 @Html.ActionLink("Admin panel", "Index", "Admin", null, new {@class = "btn btn-warning btn-group-sm"})
  80.  
  81.             }
  82.         }
  83.  
  84.         @if (User.Identity.IsAuthenticated)
  85.         {
  86.             if (User.IsInRole("Pracownik"))
  87.             {
  88.                 @Html.ActionLink("Panel pracowniczy", "Index", "Pracownik_biurowy", null, new {@class = "btn btn-warning btn-group-sm"})
  89.  
  90.             }
  91.         }
  92.  
  93.     </footer>
  94. </div>
  95.  
  96.    
  97.     @Scripts.Render("~/bundles/bootstrap")
  98.     @RenderSection("scripts", required: false)
  99.  
  100. </body>
  101. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement