PageRenderTime 62ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/Snittlistan.Web/Areas/V2/Views/Shared/_Layout.cshtml

https://github.com/dlidstrom/Snittlistan
Razor | 146 lines | 144 code | 2 blank | 0 comment | 0 complexity | 9efb56fb047a1aafa4ffc3732a8bed37 MD5 | raw file
  1. @{
  2. ViewBag.Title = "Snittlistan";
  3. }
  4. <!DOCTYPE html>
  5. <html lang="se">
  6. <head>
  7. <meta charset="utf-8" />
  8. <meta name="viewport" content="initial-scale=1.0,width=device-width" />
  9. <meta name="apple-mobile-web-app-capable" content="yes" />
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11. <meta name="apple-mobile-web-app-title" content="@Tenant.WebAppTitle" />
  12. <meta name="google-site-verification" content="g8KwkjfVGgtu5zxYGhIEfJS4JGVkCMS1YMdp5WNOOpU" />
  13. <link rel="icon"
  14. href="@Url.ContentCacheBreak($"~/Content/css/images/{Tenant.Favicon}")" />
  15. <link rel="apple-touch-icon"
  16. sizes="@Tenant.AppleTouchIconSize"
  17. href="@Url.ContentCacheBreak($"~/Content/css/images/{Tenant.AppleTouchIcon}")" />
  18. <title>@ViewBag.Title</title>
  19. @if (HttpContext.Current.IsDebuggingEnabled)
  20. {
  21. <link href="@Url.ContentCacheBreak("~/Content/external/bootstrap/css/bootstrap.css")" type="text/css" rel="stylesheet" />
  22. <link href="@Url.ContentCacheBreak("~/Content/external/bootstrap/css/bootstrap-responsive.css")" type="text/css" rel="stylesheet" />
  23. <link href="@Url.ContentCacheBreak("~/Content/external/air-datepicker/datepicker.css")" type="text/css" rel="stylesheet" />
  24. }
  25. else
  26. {
  27. <link href="@Url.ContentCacheBreak("~/Content/external/bootstrap/css/bootstrap.min.css")" type="text/css" rel="stylesheet" />
  28. <link href="@Url.ContentCacheBreak("~/Content/external/bootstrap/css/bootstrap-responsive.min.css")" type="text/css" rel="stylesheet" />
  29. <link href="@Url.ContentCacheBreak("~/Content/external/air-datepicker/datepicker.min.css")" type="text/css" rel="stylesheet" />
  30. }
  31. <link href="@Url.ContentCacheBreak("~/Content/external/quill/quill.snow.css")" type="text/css" rel="stylesheet" />
  32. <link href="@Url.ContentCacheBreak("~/Content/css/glyphicons.css")" type="text/css" rel="stylesheet" />
  33. <link href="@Url.ContentCacheBreak("~/Content/css/main.css")" type="text/css" rel="stylesheet" />
  34. <link href="@Url.ContentCacheBreak("~/Content/css/checkbox.css")" type="text/css" rel="stylesheet" />
  35. <script src="@Url.ContentCacheBreak("~/Content/js/GA.js")"></script>
  36. @if (User is object)
  37. {
  38. <script>
  39. window.ChatraIntegration = {
  40. name: '@User.CustomIdentity.Name',
  41. email: '@User.CustomIdentity.Email'
  42. };
  43. window.ChatraSetup = {
  44. clientId: '@User.CustomIdentity.UniqueId'
  45. };
  46. </script>
  47. }
  48. <script src="@Url.ContentCacheBreak("~/Content/external/chatra/chatra.js")"></script>
  49. </head>
  50. <body>
  51. <div class="navbar">
  52. <div class="navbar-inner">
  53. <div class="container">
  54. <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  55. <span class="icon-bar"></span>
  56. <span class="icon-bar"></span>
  57. <span class="icon-bar"></span>
  58. </button>
  59. <a href="@Url.RouteUrl("V2_default", new { controller = "Roster", action = "Index" })" class="brand">
  60. Snittlistan
  61. </a>
  62. <div class="nav-collapse" data-nav-collapse>
  63. @Html.Action("NavPart", "Layout")
  64. <ul class="nav pull-right">
  65. @if (Request.IsAuthenticated)
  66. {
  67. <li class="dropdown">
  68. <button data-auth-menu-toggle class="btn dropdown-toggle" data-toggle="dropdown">
  69. <i class="sprite-glyphicons_019_cogwheel"></i>
  70. <b class="caret"></b>
  71. </button>
  72. <ul class="dropdown-menu">
  73. @if (Request.IsAdmin(User))
  74. {
  75. <li>
  76. <a href="@Url.Action("Index", "AdminTasks")">
  77. <i class="sprite-glyphicons_023_cogwheels"></i>
  78. Administration
  79. </a>
  80. </li>
  81. <li class="divider"></li>
  82. }
  83. <li class="nav-header">
  84. @(User?.Identity.Name)
  85. </li>
  86. <li>
  87. <a href="@Url.Action("Index", "UserProfile")">
  88. <i class="sprite-glyphicons_023_cogwheels"></i>
  89. Min profil
  90. </a>
  91. </li>
  92. <li>
  93. <a href="@Url.Action("LogOff", "Authentication")">
  94. <i class="sprite-glyphicons_203_lock"></i>
  95. Logga ut
  96. </a>
  97. </li>
  98. </ul>
  99. </li>
  100. }
  101. else
  102. {
  103. <li>
  104. <a href="@Url.Action("LogOn", "Authentication")">
  105. <i class="sprite-glyphicons_204_unlock"></i>
  106. Logga in
  107. </a>
  108. </li>
  109. }
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div id="main" class="container">
  116. @Html.Partial("Flash")
  117. @RenderBody()
  118. </div>
  119. <script id="dsq-count-scr" src="//snittlistan.disqus.com/count.js" async></script>
  120. <script>
  121. var logErrorUrl = '@Url.Action("LogJavaScriptError", "Error")';
  122. </script>
  123. @if (HttpContext.Current.IsDebuggingEnabled)
  124. {
  125. <script src="@Url.ContentCacheBreak("~/Content/external/jquery/jquery-3.3.1.js")"></script>
  126. <script src="@Url.ContentCacheBreak("~/Content/external/bootstrap/js/bootstrap.js")"></script>
  127. <script src="@Url.ContentCacheBreak("~/Content/external/air-datepicker/datepicker.js")"></script>
  128. <script src="@Url.ContentCacheBreak("~/Content/external/quill/quill.js")"></script>
  129. }
  130. else
  131. {
  132. <script src="@Url.ContentCacheBreak("~/Content/external/jquery/jquery-3.3.1.min.js")"></script>
  133. <script src="@Url.ContentCacheBreak("~/Content/external/bootstrap/js/bootstrap.min.js")"></script>
  134. <script src="@Url.ContentCacheBreak("~/Content/external/air-datepicker/datepicker.min.js")"></script>
  135. <script src="@Url.ContentCacheBreak("~/Content/external/quill/quill.min.js")"></script>
  136. }
  137. <script src="@Url.ContentCacheBreak("~/Content/external/waypoints/waypoints-0.0.1.min.js")"></script>
  138. <script src="@Url.ContentCacheBreak("~/Content/js/stacktrace.js")"></script>
  139. <script src="@Url.ContentCacheBreak("~/Content/js/helpers/typeahead.js")"></script>
  140. <script src="@Url.ContentCacheBreak("~/Content/js/QuillForm.js")"></script>
  141. <script src="@Url.ContentCacheBreak("~/Content/js/Layout.js")"></script>
  142. @RenderSection("scripts", false)
  143. </body>
  144. </html>