@model TightWiki.Models.ViewModels.Admin.NamespacesViewModel @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."); }

Namespaces

All namespaces contained in the wiki.

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @using (Html.BeginForm(null, null, FormMethod.Get, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}" })) { @if (Model.Namespaces.Count > 0) { @foreach (var p in Model.Namespaces) { }
Name Pages
@(string.IsNullOrEmpty(p.Namespace) ? "(Default)" : p.Namespace) @p.CountOfPages.ToString("N0")
@Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) } else {
There are currently no pages which exist within namespaces.
} }