From fa97c4c204be51e75809fae8c74180975832616f Mon Sep 17 00:00:00 2001 From: wayne Date: Sun, 13 Oct 2024 17:40:26 +0800 Subject: [PATCH] Remove ViewBag.Title --- src/ZKEACMS.Article/Views/ArticleType/Select.cshtml | 2 +- src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml | 2 +- .../Views/SectionContentVideo/Play.cshtml | 2 +- src/ZKEACMS.Shop/Views/CustomOrder/Detail.cshtml | 2 +- src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml | 2 +- src/ZKEACMS.Shop/Views/CustomOrder/Index.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Edit.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Forgotten.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Index.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Login.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/PassWord.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Reset.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/Sended.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/SignIn.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/SignUp.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Account/SignUpSuccess.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Error/Forbidden.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Error/Index.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Error/NotFound.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Media/Index.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Navigation/Select.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Page/Select.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Shared/NotFound.cshtml | 2 +- src/ZKEACMS.WebHost/Views/Shared/Partial.PageHeader.cshtml | 2 +- .../Views/Shared/_CustomerCenterLayout.cshtml | 6 +----- src/ZKEACMS.WebHost/Views/Shared/_EmptyLayout.cshtml | 6 ------ src/ZKEACMS.WebHost/Views/Shared/_LayoutGeneric.cshtml | 6 ------ src/ZKEACMS.WebHost/Views/Shared/_LayoutNormal.cshtml | 6 ------ src/ZKEACMS.WebHost/Views/Shared/_PopUpClientLayout.cshtml | 6 ------ src/ZKEACMS.WebHost/Views/Shared/_PopUpLayout.cshtml | 5 ----- src/ZKEACMS.WebHost/Views/User/PassWord.cshtml | 2 +- 31 files changed, 26 insertions(+), 59 deletions(-) diff --git a/src/ZKEACMS.Article/Views/ArticleType/Select.cshtml b/src/ZKEACMS.Article/Views/ArticleType/Select.cshtml index 2a6b4c709..5669798d5 100644 --- a/src/ZKEACMS.Article/Views/ArticleType/Select.cshtml +++ b/src/ZKEACMS.Article/Views/ArticleType/Select.cshtml @@ -1,7 +1,7 @@ @using Easy.ViewPort.jsTree @using ZKEACMS.Article.Models @{ - ViewBag.Title = L("Article Category"); + this.WorkContext().CurrentPage.Title = L("Article Category"); Layout = Layouts.PopUp; Style.Reqiured("jsTree").AtHead(); Script.Reqiured("jsTree").AtFoot(); diff --git a/src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml b/src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml index 78b4484dd..9a2014db3 100644 --- a/src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml +++ b/src/ZKEACMS.Product/Views/ProductCategory/Select.cshtml @@ -1,7 +1,7 @@ @using Easy.ViewPort.jsTree @using ZKEACMS.Article.Models @{ - ViewBag.Title = L("Product Category"); + this.WorkContext().CurrentPage.Title = L("Product Category"); Layout = Layouts.PopUp; Style.Reqiured("jsTree").AtHead(); Script.Reqiured("jsTree").AtFoot(); diff --git a/src/ZKEACMS.SectionWidget/Views/SectionContentVideo/Play.cshtml b/src/ZKEACMS.SectionWidget/Views/SectionContentVideo/Play.cshtml index cc8b7c3eb..e298a4685 100644 --- a/src/ZKEACMS.SectionWidget/Views/SectionContentVideo/Play.cshtml +++ b/src/ZKEACMS.SectionWidget/Views/SectionContentVideo/Play.cshtml @@ -8,7 +8,7 @@ { return; } - ViewBag.Title = video.VideoTitle; + this.WorkContext().CurrentPage.Title = video.VideoTitle; Style.Reqiured("Section").AtFoot(); } diff --git a/src/ZKEACMS.Shop/Views/CustomOrder/Detail.cshtml b/src/ZKEACMS.Shop/Views/CustomOrder/Detail.cshtml index 1b06cf70b..cbf1bbd2e 100644 --- a/src/ZKEACMS.Shop/Views/CustomOrder/Detail.cshtml +++ b/src/ZKEACMS.Shop/Views/CustomOrder/Detail.cshtml @@ -2,7 +2,7 @@ @model OrderDetailViewModel @{ Layout = Layouts.CustomerCenter; - ViewBag.Title = L("Order Detail").Text; + this.WorkContext().CurrentPage.Title = L("Order Detail").Text; if (Model.Order == null) { return; diff --git a/src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml b/src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml index c0260bb15..4d15e5378 100644 --- a/src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml +++ b/src/ZKEACMS.Shop/Views/CustomOrder/Failed.cshtml @@ -1,6 +1,6 @@ @{ Layout = Layouts.CustomerCenter; - ViewBag.Title = L("Order failed to pay"); + this.WorkContext().CurrentPage.Title = L("Order failed to pay"); }