The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Navbar.cshtml 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @model Teknik.ViewModels.ViewModelBase
  2. <div class="navbar navbar-default navbar-fixed-top">
  3. <div class="container">
  4. <div class="navbar-header">
  5. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  6. <span class="icon-bar"></span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. </button>
  10. <a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="/Images/logo-black.svg" height="20" alt="Teknik"></a>
  11. </div>
  12. <div class="navbar-collapse collapse">
  13. <ul class="nav navbar-nav">
  14. <li class="@Url.GetActive("www", string.Empty)"><a href="@Url.SubRouteUrl("www", "Home.Index")">Home</a></li>
  15. <li class="@Url.GetActive("about")"><a href="@Url.SubRouteUrl("about", "About.Index")">About</a></li>
  16. <li class="divider-vertical"></li>
  17. <li class="dropdown">
  18. <a href="#" id="services_menu" class="dropdown-toggle" data-toggle="dropdown">Services <strong class="caret"></strong></a>
  19. <ul class="dropdown-menu" role="menu" aria-labelledby="services_menu">
  20. <li class="@Url.GetActive("blog")">
  21. <a href="@Url.SubRouteUrl("blog", "Blog.Blog", new { username = string.Empty })">Blog</a>
  22. </li>
  23. <li class="@Url.GetActive("podcast")">
  24. <a href="@Url.SubRouteUrl("podcast", "Podcast.Index")">Podcast</a>
  25. </li>
  26. <li class="divider"></li>
  27. <li class="@Url.GetActive("upload", "u")">
  28. <a href="@Url.SubRouteUrl("upload", "Upload.Index")">Upload</a>
  29. </li>
  30. <li class="@Url.GetActive("paste", "p")">
  31. <a href="@Url.SubRouteUrl("paste", "Paste.Index")">Paste</a>
  32. </li>
  33. <li class="@Url.GetActive("git")">
  34. <a href="@Url.SubRouteUrl("git", "Git.Index")">Git</a>
  35. </li>
  36. <li class="@Url.GetActive("mail")">
  37. <a href="@Url.SubRouteUrl("mail", "Mail.Index")" target="_blank">Mail</a>
  38. </li>
  39. <li class="@Url.GetActive("mumble")">
  40. <a href="mumble://mumble.@(Model.Config.Host):64738/?version=1.2.5" target="_blank">Mumble</a>
  41. </li>
  42. </ul>
  43. </li>
  44. <li class="@Url.GetActive("contact")">
  45. <a href="@Url.SubRouteUrl("contact", "Contact.Index")">Contact</a>
  46. </li>
  47. <li class="@Url.GetActive("help")">
  48. <a href="@Url.SubRouteUrl("help", "Help.Index")">Help</a>
  49. </li>
  50. </ul>
  51. @Html.Partial("_LoginPartial", Model)
  52. </div>
  53. </div>
  54. </div>