Advertisement
Guest User

VS2010 _Layout.cshtml

a guest
Jul 16th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.33 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 - Forum</title>
  7.     @Styles.Render("~/Content/css")
  8.     @Scripts.Render("~/bundles/modernizr")
  9.  
  10.  
  11. </head>
  12. <body>
  13.     <div class="navbar navbar-inverse navbar-fixed-top">
  14.         <div class="container">
  15.             <div class="navbar-header">
  16.                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  17.                     <span class="icon-bar"></span>
  18.                     <span class="icon-bar"><</span>
  19.                     <span class="icon-bar"></span>
  20.                 </button>
  21.  
  22.                @Html.Raw(@Html.ActionLink("[replacetext]", "Index", "Home",
  23.                                            new { area = "" },
  24.                                            new { @class = "navbar-brand" })
  25.                   .ToHtmlString().Replace("[replacetext]",
  26.                                           "<img src=\"/images/forum.jpg\" alt=\"QA Forum logo\" />"))
  27.  
  28.  
  29.             </div>
  30.             <div class="navbar-collapse collapse ">
  31.                 <ul class="nav navbar-nav">
  32.                     <li>@Html.ActionLink("Home", "Index", "Home")</li>
  33.                     <li>@Html.ActionLink("Forums", "Index", "Forum")</li>
  34.                     <li>@Html.ActionLink("Threads", "Index", "Thread")</li>
  35.                     <li>@Html.ActionLink("Posts", "Index", "Post")</li>
  36.                     <li>@Html.ActionLink("About", "About", "Home")</li>
  37.                     <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
  38.                     <li>@Html.ActionLink("Avatar", "SelectAvatar", "Avatar")</li>
  39.                     <li>@Html.ActionLink("Admin", "Index", "Admin")</li>
  40.                     @Html.Action("Avatar", "Layout")
  41.  
  42.                 </ul>
  43.                 @Html.Partial("_LoginPartial")
  44.  
  45.             </div>
  46.         </div>
  47.     </div>
  48.     <div class="container body-content">
  49.         @RenderBody()
  50.         <hr />
  51.         <footer>
  52.             <p>&copy; @DateTime.Now.Year - ID</p>
  53.         </footer>
  54.     </div>
  55.  
  56.     @Scripts.Render("~/bundles/jquery")
  57.     @Scripts.Render("~/bundles/jqueryval")
  58.     @Scripts.Render("~/bundles/bootstrap")
  59.     @RenderSection("scripts", required: false)
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement