@using TightWiki.Models @model TightWiki.Models.ViewModels.Page.PageSearchViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; var sessionState = ViewData["SessionState"] as TightWiki.SessionState ?? throw new Exception("Wiki State Context cannot be null."); }

搜索

找一找,有没有你想要的

@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}" })) {
@Html.TextBoxFor(x => x.SearchString, new { @class = "form-control", style = "width:100%" })

@foreach (var p in Model.Pages) { }
@if ((p.Namespace ?? "") != "") { @p.Namespace :: }@p.Title@(String.IsNullOrEmpty(@p.Description) ? "" : " : ") @p.Description
if (Model.Pages.Count == 0) {
好像啥也没查到哎
} @Html.Raw(TightWiki.Library.PageSelectorGenerator.Generate(Context.Request.QueryString, Model.PaginationPageCount)) }