diff --git a/VoidCat/Pages/Index.cshtml b/VoidCat/Pages/Index.cshtml index 345363c..a6f2be0 100644 --- a/VoidCat/Pages/Index.cshtml +++ b/VoidCat/Pages/Index.cshtml @@ -1,6 +1,6 @@ @using VoidCat.Model @model VoidCat.Controllers.IndexController.IndexModel -@inject VoidSettings settings +@inject VoidSettings Settings @@ -10,43 +10,45 @@ - + @if (Model.Meta != default) { - var ub = new UriBuilder(settings.SiteUrl) + var ubDownload = new UriBuilder(Settings.SiteUrl) { Path = $"/d/{Model.Id.ToBase58()}" }; - - var link = ub.ToString(); - + var ubView = new UriBuilder(Settings.SiteUrl) + { + Path = $"/{Model.Id.ToBase58()}" + }; + void.cat - @Model.Meta.Name - - + + var mime = Model.Meta.MimeType; if (!string.IsNullOrEmpty(mime)) { if (mime.StartsWith("image/")) { - + } else if (mime.StartsWith("video/")) { - + } else if (mime.StartsWith("audio/")) { - + } } @@ -57,7 +59,7 @@ } - + @foreach (var ep in Model.Manifest.Entrypoints) { switch (System.IO.Path.GetExtension(ep)) @@ -76,7 +78,6 @@ } -
\ No newline at end of file