From 8a074616d38bedaf1a8266d2e5dd23a15a651272 Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Wed, 26 Aug 2020 15:24:24 +0200 Subject: [PATCH] Change grid view @Html.If to conditional statement (cherry picked from commit a5f4252f097fd2e2b25333ad0fc1ccfb043c35ca) --- src/Umbraco.Web.UI/Views/Partials/Grid/Bootstrap3.cshtml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI/Views/Partials/Grid/Bootstrap3.cshtml b/src/Umbraco.Web.UI/Views/Partials/Grid/Bootstrap3.cshtml index 23fee33043..c30feb2165 100644 --- a/src/Umbraco.Web.UI/Views/Partials/Grid/Bootstrap3.cshtml +++ b/src/Umbraco.Web.UI/Views/Partials/Grid/Bootstrap3.cshtml @@ -36,7 +36,9 @@ @helper renderRow(dynamic row, bool singleColumn){
- @Html.If(singleColumn, "
") + @if (singleColumn) { + @:
+ }
@foreach ( var area in row.areas ) {
@@ -49,7 +51,9 @@
}
- @Html.If(singleColumn, "
") + @if (singleColumn) { + @:
+ } }