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.
 
 
 
 
 

79 lines
3.9 KiB

@await Html.PartialAsync("~/Areas/User/Views/User/_LoginModalPartial.cshtml", Model)
@{
string logoPath = Url.SubRouteUrl("www", "Default.Logo");
// If we are using a CDN, let's replace it
if (Config.UseCdn)
{
if (!string.IsNullOrEmpty(Config.CdnHost))
{
logoPath = Config.CdnHost.TrimEnd('/') + Constants.LOGO_PATH.TrimStart('~');
}
}
}
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="@logoPath" height="20" alt="Teknik"></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="@Url.GetActive("www", string.Empty)">
<a href="@Url.SubRouteUrl("www", "Home.Index")">Home</a>
</li>
<li class="@Url.GetActive("about")">
<a href="@Url.SubRouteUrl("about", "About.Index")">About</a>
</li>
<li class="@Url.GetActive("blog")">
<a href="@Url.SubRouteUrl("blog", "Blog.Blog", new { username = string.Empty })">News</a>
</li>
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="#" id="services_menu" class="dropdown-toggle" data-toggle="dropdown">Services <strong class="caret"></strong></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="services_menu">
<li class="@Url.GetActive("podcast")">
<a href="@Url.SubRouteUrl("podcast", "Podcast.Index")">Teknikast</a>
</li>
<li class="@Url.GetActive("upload", "u")">
<a href="@Url.SubRouteUrl("upload", "Upload.Index")">Uploads</a>
</li>
<li class="@Url.GetActive("paste", "p")">
<a href="@Url.SubRouteUrl("paste", "Paste.Index")">Pastebin</a>
</li>
<li class="@Url.GetActive("shorten", "s")">
<a href="@Url.SubRouteUrl("shorten", "Shortener.Index")">Shorten Url</a>
</li>
<li class="@Url.GetActive("vault", "v")">
<a href="@Url.SubRouteUrl("vault", "Vault.NewVault")">Vaults</a>
</li>
<li role="separator" class="divider"></li>
<li class="@Url.GetActive("git")">
<a href="@Config.GitConfig.Host">Git</a>
</li>
<li class="@Url.GetActive("mail")">
<a href="@Url.SubRouteUrl("mail", "Mail.Index")" target="_blank">Mail</a>
</li>
<li class="@Url.GetActive("mumble")">
<a href="mumble://mumble.@(Config.Host):64738/?version=1.2.5" target="_blank">Mumble</a>
</li>
</ul>
</li>
<li class="@Url.GetActive("contact")">
<a href="@Url.SubRouteUrl("contact", "Contact.Index")">Contact</a>
</li>
<li class="@Url.GetActive("help")">
<a href="@Url.SubRouteUrl("help", "Help.Index")">Help</a>
</li>
</ul>
@await Html.PartialAsync("~/Areas/User/Views/User/_LoginPartial.cshtml", Model)
</div>
</div>
</div>