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.3KB

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