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 4.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @await Html.PartialAsync("~/Areas/User/Views/User/_LoginModalPartial.cshtml", Model)
  2. @{
  3. string logoPath = Url.SubRouteUrl("www", "Default.Logo");
  4. // If we are using a CDN, let's replace it
  5. if (Config.UseCdn)
  6. {
  7. if (!string.IsNullOrEmpty(Config.CdnHost))
  8. {
  9. logoPath = Config.CdnHost.TrimEnd('/') + Constants.LOGO_PATH.TrimStart('~');
  10. }
  11. }
  12. }
  13. <div class="navbar navbar-default 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. <a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="@logoPath" height="20" alt="Teknik" /></a>
  22. </div>
  23. <div class="navbar-collapse collapse">
  24. <ul class="nav navbar-nav">
  25. <li is-active-route asp-controller="Home">
  26. <a href="@Url.SubRouteUrl("www", "Home.Index")">Home</a>
  27. </li>
  28. <li is-active-route asp-controller="About">
  29. <a href="@Url.SubRouteUrl("about", "About.Index")">About</a>
  30. </li>
  31. <li is-active-route asp-controller="Blog" asp-action="Blog" asp-route-username="">
  32. <a href="@Url.SubRouteUrl("blog", "Blog.Blog", new { username = string.Empty })">News</a>
  33. </li>
  34. <li class="divider-vertical"></li>
  35. <li class="dropdown">
  36. <a href="#" id="services_menu" class="dropdown-toggle" data-toggle="dropdown">Services <strong class="caret"></strong></a>
  37. <ul class="dropdown-menu" role="menu" aria-labelledby="services_menu">
  38. <li is-active-route asp-controller="Podcast">
  39. <a href="@Url.SubRouteUrl("podcast", "Podcast.Index")"><i class="fa fa-microphone fa-fw"></i>&nbsp;&nbsp;Teknikast</a>
  40. </li>
  41. <li is-active-route asp-controller="Upload" asp-action="Index">
  42. <a href="@Url.SubRouteUrl("upload", "Upload.Index")"><i class="fa fa-lock fa-fw"></i>&nbsp;&nbsp;Upload Files</a>
  43. </li>
  44. <li is-active-route asp-controller="Paste" asp-action="Index">
  45. <a href="@Url.SubRouteUrl("paste", "Paste.Index")"><i class="fa fa-code fa-fw"></i>&nbsp;&nbsp;Pastebin</a>
  46. </li>
  47. <li is-active-route asp-controller="Shortener">
  48. <a href="@Url.SubRouteUrl("shorten", "Shortener.Index")"><i class="fa fa-link fa-fw"></i>&nbsp;&nbsp;Url Shortener</a>
  49. </li>
  50. <li is-active-route asp-controller="Vault" asp-action="NewVault">
  51. <a href="@Url.SubRouteUrl("vault", "Vault.NewVault")"><i class="fa fa-folder fa-fw"></i>&nbsp;&nbsp;Create Vault</a>
  52. </li>
  53. <li role="separator" class="divider"></li>
  54. <li class="@Url.GetActive("git")">
  55. <a href="@Config.GitConfig.Host"><i class="fa fa-git-square fa-fw"></i>&nbsp;&nbsp;Git</a>
  56. </li>
  57. <li class="@Url.GetActive("mail")">
  58. <a href="@Url.SubRouteUrl("mail", "Mail.Index")" target="_blank"><i class="fa fa-envelope fa-fw"></i>&nbsp;&nbsp;Mail</a>
  59. </li>
  60. <li class="@Url.GetActive("mumble")">
  61. <a href="mumble://mumble.@(Config.Host):64738/?version=1.2.5" target="_blank"><i class="fa fa-comments fa-fw"></i>&nbsp;&nbsp;Mumble</a>
  62. </li>
  63. </ul>
  64. </li>
  65. <li is-active-route asp-controller="Contact">
  66. <a href="@Url.SubRouteUrl("contact", "Contact.Index")">Contact</a>
  67. </li>
  68. <li is-active-route asp-controller="Help">
  69. <a href="@Url.SubRouteUrl("help", "Help.Index")">Help</a>
  70. </li>
  71. </ul>
  72. @await Html.PartialAsync("~/Areas/User/Views/User/_LoginPartial.cshtml", Model)
  73. </div>
  74. </div>
  75. </div>