1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Updated uploads 'Create Vault' icon and text.

Made default page for vaults go to the create vault page.
Added vault to navbar.
This commit is contained in:
Uncled1023 2017-02-14 00:32:24 -08:00
parent 19f42c5276
commit 75e2a37221
3 changed files with 13 additions and 1 deletions

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>

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

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>