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:
parent
19f42c5276
commit
75e2a37221
@ -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> Copy All Uploads</button>
|
||||
<button type="button" class="btn btn-default btn-sm" id="create-vault"><i class="fa fa-clipboard"></i> Add to Vault</button>
|
||||
<button type="button" class="btn btn-default btn-sm" id="create-vault"><i class="fa fa-folder"></i> Create Vault</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user