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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @model Teknik.ViewModels.ViewModelBase
  2. @Html.Partial("../../Areas/User/Views/User/_LoginModalPartial", Model)
  3. @using Teknik.Utilities
  4. @{
  5. string logoPath = Url.SubRouteUrl("www", "Default.Logo");
  6. // If we are using a CDN, let's replace it
  7. if (Model.Config.UseCdn)
  8. {
  9. if (!string.IsNullOrEmpty(Model.Config.CdnHost))
  10. {
  11. logoPath = Model.Config.CdnHost.TrimEnd('/') + Constants.LOGO_PATH.TrimStart('~');
  12. }
  13. }
  14. }
  15. <div class="navbar navbar-default navbar-fixed-top">
  16. <div class="container">
  17. <div class="navbar-header">
  18. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  19. <span class="icon-bar"></span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. </button>
  23. <a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="@logoPath" height="20" alt="Teknik"></a>
  24. </div>
  25. <div class="navbar-collapse collapse">
  26. <ul class="nav navbar-nav">
  27. <li class="@Url.GetActive("www", string.Empty)">
  28. <a href="@Url.SubRouteUrl("www", "Home.Index")">Home</a>
  29. </li>
  30. <li class="@Url.GetActive("about")">
  31. <a href="@Url.SubRouteUrl("about", "About.Index")">About</a>
  32. </li>
  33. <li class="@Url.GetActive("blog")">
  34. <a href="@Url.SubRouteUrl("blog", "Blog.Blog", new { username = string.Empty })">News</a>
  35. </li>
  36. <li class="divider-vertical"></li>
  37. <li class="dropdown">
  38. <a href="#" id="services_menu" class="dropdown-toggle" data-toggle="dropdown">Services <strong class="caret"></strong></a>
  39. <ul class="dropdown-menu" role="menu" aria-labelledby="services_menu">
  40. <li class="@Url.GetActive("podcast")">
  41. <a href="@Url.SubRouteUrl("podcast", "Podcast.Index")">Teknikast</a>
  42. </li>
  43. <li class="@Url.GetActive("upload", "u")">
  44. <a href="@Url.SubRouteUrl("upload", "Upload.Index")">Uploads</a>
  45. </li>
  46. <li class="@Url.GetActive("paste", "p")">
  47. <a href="@Url.SubRouteUrl("paste", "Paste.Index")">Pastebin</a>
  48. </li>
  49. <li class="@Url.GetActive("shorten", "s")">
  50. <a href="@Url.SubRouteUrl("shorten", "Shortener.Index")">Shorten Url</a>
  51. </li>
  52. <li class="@Url.GetActive("vault", "v")">
  53. <a href="@Url.SubRouteUrl("vault", "Vault.Index")">Vaults</a>
  54. </li>
  55. <li role="separator" class="divider"></li>
  56. <li class="@Url.GetActive("git")">
  57. <a href="@Model.Config.GitConfig.Host">Git</a>
  58. </li>
  59. <li class="@Url.GetActive("mail")">
  60. <a href="@Url.SubRouteUrl("mail", "Mail.Index")" target="_blank">Mail</a>
  61. </li>
  62. <li class="@Url.GetActive("mumble")">
  63. <a href="mumble://mumble.@(Model.Config.Host):64738/?version=1.2.5" target="_blank">Mumble</a>
  64. </li>
  65. </ul>
  66. </li>
  67. <li class="@Url.GetActive("contact")">
  68. <a href="@Url.SubRouteUrl("contact", "Contact.Index")">Contact</a>
  69. </li>
  70. <li class="@Url.GetActive("help")">
  71. <a href="@Url.SubRouteUrl("help", "Help.Index")">Help</a>
  72. </li>
  73. </ul>
  74. @Html.Partial("../../Areas/User/Views/User/_LoginPartial", Model)
  75. </div>
  76. </div>
  77. </div>