@model TightWiki.Models.ViewModels.Admin.OrphanedPageAttachmentsViewModel @using TightWiki.Library @using TightWiki.Models @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }
These are all of the page attachments that are no longer attached to any page revision.
| Page | File | Size | Revision | Action |
|
@if (string.IsNullOrEmpty(@p.Namespace) == false)
{
|
@p.FileName | @NTDLS.Helpers.Formatters.FileSize((long)@p.Size) | @p.FileRevision | @Html.Raw(TightWiki.Library.ConfirmActionHelper.GenerateDangerLink(GlobalConfiguration.BasePath, "This will permanently delete the specified attachment. Continue?", "Delete", $"/Admin/PurgeOrphanedAttachment/{@p.PageFileId}/{@p.FileRevision}", Context.Request.Path.Value)) |