Browse Source

Updated uploads 'Create Vault' icon and text.

Made default page for vaults go to the create vault page.
Added vault to navbar.
tags/2.0.6
Teknikode 3 years ago
parent
commit
75e2a37221

+ 1
- 1
Teknik/Areas/Upload/Views/Upload/Index.cshtml View File

@@ -55,7 +55,7 @@
<div class="col-sm-12">
<div class="btn-group pull-right" role="group">
<button type="button" class="btn btn-default btn-sm" id="copy-all"><i class="fa fa-clipboard"></i>&nbsp;Copy All Uploads</button>
<button type="button" class="btn btn-default btn-sm" id="create-vault"><i class="fa fa-clipboard"></i>&nbsp;Add to Vault</button>
<button type="button" class="btn btn-default btn-sm" id="create-vault"><i class="fa fa-folder"></i>&nbsp;Create Vault</button>
</div>
</div>
</div>

+ 9
- 0
Teknik/Areas/Vault/VaultAreaRegistration.cs View File

@@ -19,6 +19,15 @@ namespace Teknik.Areas.Vault
public override void RegisterArea(AreaRegistrationContext context)
{
Config config = Config.Load();
context.MapSubdomainRoute(
"Vault.Index",
new List<string>() { "vault", "v" }, // Subdomains
new List<string>() { config.Host }, // domains
"",
new { controller = "Vault", action = "NewVault" },
new[] { typeof(Controllers.VaultController).Namespace }
);

context.MapSubdomainRoute(
"Vault.NewVault",
new List<string>() { "vault", "v" }, // Subdomains

+ 3
- 0
Teknik/Views/Shared/_Navbar.cshtml View File

@@ -52,6 +52,9 @@
<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.Index")">Vaults</a>
</li>
<li class="@Url.GetActive("git")">
<a href="@Model.Config.GitConfig.Host">Git</a>
</li>

Loading…
Cancel
Save