mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
16 lines
1.0 KiB
Plaintext
16 lines
1.0 KiB
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Search.ViewModels.SearchIndexViewModel>" %>
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
Html.RegisterStyle("admin.css"); %>
|
|
<h1><%:Html.TitleForPage(T("Search Index Management").ToString()) %></h1><%
|
|
using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
|
|
<fieldset>
|
|
<p><%:T("The search index was last updated {0}.", Html.DateTimeRelative(Model.IndexUpdatedUtc, T))%> <button type="submit" title="<%:T("Update the search index.") %>" class="primaryAction"><%:T("Update")%></button></p>
|
|
<%:Html.AntiForgeryTokenOrchard() %>
|
|
</fieldset><%
|
|
}
|
|
using (Html.BeginForm("rebuild", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
|
|
<fieldset>
|
|
<p><%:T("Rebuild the search index for a fresh start.") %> <button type="submit" title="<%:T("Rebuild the search index.") %>"><%:T("Rebuild") %></button></p>
|
|
<%:Html.AntiForgeryTokenOrchard() %>
|
|
</fieldset><%
|
|
} %> |