From 049b4a8f3582a7b9d8daf55d61a93dff275e6f48 Mon Sep 17 00:00:00 2001 From: Andrea Piovanelli <83577153+AndreaPiovanelliLaser@users.noreply.github.com> Date: Fri, 17 Mar 2023 09:12:50 +0100 Subject: [PATCH] Changed cache options labels (for clarity) (#8651) --- .../Views/Admin/Index.cshtml | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Admin/Index.cshtml b/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Admin/Index.cshtml index 33693b1fe..81a16507f 100644 --- a/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Admin/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.OutputCache/Views/Admin/Index.cshtml @@ -1,5 +1,5 @@ @model Orchard.OutputCache.ViewModels.IndexViewModel - + @{ Layout.Title = T("Cache Settings"); @@ -10,8 +10,7 @@ .ToDictionary(x => x.Key, x => x.Select(y => y)); } -@using (Html.BeginFormAntiForgeryPost()) -{ +@using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
@@ -39,11 +38,11 @@
@Html.RadioButtonFor(m => m.VaryByQueryStringIsExclusive, "False", new { Id = "varyByQueryStringExclusiveMode" }) - +
@Html.RadioButtonFor(m => m.VaryByQueryStringIsExclusive, "True", new { Id = "varyByQueryStringInclusiveMode" }) - +
@Html.TextBoxFor(m => m.VaryByQueryStringParameters, new { @class = "text medium" }) @@ -107,21 +106,21 @@ @foreach (var routeConfig in featureRouteConfigs[feature]) { var index = Model.RouteConfigs.IndexOf(routeConfig); - - @routeConfig.Url - @routeConfig.Priority - - @Html.TextBoxFor(m => m.RouteConfigs[index].Duration, new { @class = "text small" }) - - - @Html.TextBoxFor(m => m.RouteConfigs[index].GraceTime, new { @class = "text small" }) - - @Html.HiddenFor(m => m.RouteConfigs[index].RouteKey) - + + @routeConfig.Url + @routeConfig.Priority + + @Html.TextBoxFor(m => m.RouteConfigs[index].Duration, new { @class = "text small" }) + + + @Html.TextBoxFor(m => m.RouteConfigs[index].GraceTime, new { @class = "text small" }) + + @Html.HiddenFor(m => m.RouteConfigs[index].RouteKey) + } } - + @T("* Leave Duration column empty to use default duration, enter 0 to disable caching for the route.") @T("** Leave Grace Time column empty to use default grace time, enter 0 to disable grace time for the route.")