From 55b2bcae6304154c3ffde264092ddd409d8d7af5 Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Mon, 5 Jun 2017 09:47:15 +0200 Subject: [PATCH] Slightly adjusting the list so it still looks okay with an odd number of events --- OurUmbraco.Site/Views/Partials/Home/Meetups.cshtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OurUmbraco.Site/Views/Partials/Home/Meetups.cshtml b/OurUmbraco.Site/Views/Partials/Home/Meetups.cshtml index b9386c65..345381e4 100644 --- a/OurUmbraco.Site/Views/Partials/Home/Meetups.cshtml +++ b/OurUmbraco.Site/Views/Partials/Home/Meetups.cshtml @@ -61,6 +61,11 @@ } +@if (Model.Items.Length % 2 == 1) { + // If there is an odd amount of events, we add a invisible div so the last event doesn't take up the full width + +} + @if (Model.Items.Any() == false) {

Could not load upcoming meetups.

}