Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Maintenance.cshtml

@model MaintenanceModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.System.Maintenance").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Maintenance");
}

@{
    const string hideDeleteGuestsBlockAttributeName = "MaintenancePage.HideDeleteGuestsBlock";
    var customer = await workContext.GetCurrentCustomerAsync();
    var hideDeleteGuestsBlock = await genericAttributeService.GetAttributeAsync(customer, hideDeleteGuestsBlockAttributeName);

    const string hideDeleteFilesBlockAttributeName = "MaintenancePage.HideDeleteFilesBlock";
    var hideDeleteFilesBlock = await genericAttributeService.GetAttributeAsync(customer, hideDeleteFilesBlockAttributeName);

    const string hideDeleteCartsBlockAttributeName = "MaintenancePage.HideDeleteCartsBlock";
    var hideDeleteCartsBlock = await genericAttributeService.GetAttributeAsync(customer, hideDeleteCartsBlockAttributeName);

    const string hideReindexBlockAttributeName = "MaintenancePage.HideReindexBlock";
    var hideReindexBlock = await genericAttributeService.GetAttributeAsync(customer, hideReindexBlockAttributeName);

    const string hideBackupsBlockAttributeName = "MaintenancePage.HideBackupsBlock";
    var hideBackupsBlock = await genericAttributeService.GetAttributeAsync(customer, hideBackupsBlockAttributeName);

    const string hideDeleteAlreadySentQueuedEmailsBlockAttributeName = "MaintenancePage.HideDeleteAlreadySentQueuedEmailsBlock";
    var hideDeleteAlreadySentQueuedEmailsBlock = await genericAttributeService.GetAttributeAsync(customer, hideDeleteAlreadySentQueuedEmailsBlockAttributeName);

    const string hideDeleteMinificationFilesBlockAttributeName = "MaintenancePage.HideDeleteMinificationFilesBlock";
    var hideDeleteMinificationFilesBlock = await genericAttributeService.GetAttributeAsync(customer, hideDeleteMinificationFilesBlockAttributeName);

}

@T("Admin.System.Maintenance")

  @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.MaintenanceButtons, additionalData = Model })
@await Html.PartialAsync("_Maintenance.DeleteGuests", Model) @await Html.PartialAsync("_Maintenance.DeleteFiles", Model)
@await Html.PartialAsync("_Maintenance.DeleteAbandonedCarts", Model) @await Html.PartialAsync("_Maintenance.ReindexDatabaseTables", Model)
@if (Model.BackupSupported) { @await Html.PartialAsync("_Maintenance.DBBackups", Model) } @await Html.PartialAsync("_Maintenance.DeleteAlreadySentQueuedEmails", Model)
@await Html.PartialAsync("_Maintenance.DeleteMinificationCacheFiles", Model)
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.MaintenanceDetailsBlock, additionalData = Model })