From 83eed4c70f7dffb43eff19eb40491ebd9434e5ee Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Tue, 22 Jun 2021 19:49:11 +0200 Subject: [PATCH] Formatting --- .../Views/Partials/grid/bootstrap3-fluid.cshtml | 14 +++++++++----- .../Views/Partials/grid/bootstrap3.cshtml | 10 +++++++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml index 904e446052..84004929bd 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml @@ -14,7 +14,8 @@
@if (oneColumn) { - foreach (var section in Model.sections) { + foreach (var section in Model.sections) + {
@foreach (var row in section.rows) { @@ -22,12 +23,15 @@ }
} - }else { + } + else + {
- @foreach (var s in Model.sections) { + @foreach (var sec in Model.sections) + {
-
- @foreach (var row in s.rows) +
+ @foreach (var row in sec.rows) { renderRow(row); } diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml index bc4b3cd6dd..ebe1cf725f 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml @@ -10,7 +10,8 @@
@if (oneColumn) { - foreach (var section in Model.sections) { + foreach (var section in Model.sections) + {
@foreach (var row in section.rows) { @@ -18,10 +19,13 @@ }
} - }else { + } + else + {
- @foreach (var sec in Model.sections) { + @foreach (var sec in Model.sections) + {
@foreach (var row in sec.rows)