Formatting

This commit is contained in:
Bjarne Fyrstenborg
2021-06-22 19:49:11 +02:00
parent 44e9fb92e8
commit 83eed4c70f
2 changed files with 16 additions and 8 deletions

View File

@@ -14,7 +14,8 @@
<div class="umb-grid">
@if (oneColumn)
{
foreach (var section in Model.sections) {
foreach (var section in Model.sections)
{
<div class="grid-section">
@foreach (var row in section.rows)
{
@@ -22,12 +23,15 @@
}
</div>
}
}else {
}
else
{
<div class="row clearfix">
@foreach (var s in Model.sections) {
@foreach (var sec in Model.sections)
{
<div class="grid-section">
<div class="col-md-@s.grid column">
@foreach (var row in s.rows)
<div class="col-md-@sec.grid column">
@foreach (var row in sec.rows)
{
renderRow(row);
}

View File

@@ -10,7 +10,8 @@
<div class="umb-grid">
@if (oneColumn)
{
foreach (var section in Model.sections) {
foreach (var section in Model.sections)
{
<div class="grid-section">
@foreach (var row in section.rows)
{
@@ -18,10 +19,13 @@
}
</div>
}
}else {
}
else
{
<div class="container">
<div class="row clearfix">
@foreach (var sec in Model.sections) {
@foreach (var sec in Model.sections)
{
<div class="grid-section">
<div class="col-md-@sec.grid column">
@foreach (var row in sec.rows)