-
- - - - -
-
-
-
+
+
+ <%= render '/partials/_events_tile.*', event: upcoming_events[0] || all_events[-1] %>
+
+
+
+
diff --git a/layouts/events.erb b/layouts/events.erb
index df95b69..e8e1d62 100644
--- a/layouts/events.erb
+++ b/layouts/events.erb
@@ -27,7 +27,7 @@
+
-
+
-
-
+
+
+ + + + +
+
+
- <%= render '/partials/_events_tile.*', event: upcoming_events[0] || all_events[-1] %>
-
-
-
-
- <%= render '/partials/_tile.*',
- article: sorted_articles.first,
- small_text: "Latest blogpost",
- htmlclass:"highlighted"%>
-
-
- <% all_events.reject { |x| x == (upcoming_events[0] || all_events[-1]) }.reverse[0..2].each do |event| %>
-
+
- <%= render '/partials/_events_tile.*', event: event %>
-
- <%end%>
+
+
+ <%= render '/partials/_tile.*',
+ article: sorted_articles.first,
+ small_text: "Latest blogpost",
+ htmlclass:"highlighted"%>
+
+
+
+ <% all_events.reject { |x| x == (upcoming_events[0] || all_events[-1]) }.reverse[0..2].each do |event| %>
+
+
+ <%= render '/partials/_events_tile.*', event: event %>
-
- <% sorted_articles[1..3].each do |post| %>
-
- <%= render '/partials/_tile.*',
- article: post,
- small_text: "Blogpost"%>
-
<%end%>
-
-
+ <% sorted_articles[1..3].each do |post| %>
+
+
+ <%= render '/partials/_tile.*',
+ article: post,
+ small_text: "Blogpost"%>
+
+ <%end%>
+
+ Upcoming events
<% slice.each do |event| %>
@@ -42,7 +42,7 @@
- <% past_events(@item[:academic_year]).each_slice(2) do |slice| %>
+ <% past_events(@item[:academic_year]).each_slice(1) do |slice| %>
Past events
<% slice.each do |event| %>
diff --git a/layouts/partials/_events_tile.erb b/layouts/partials/_events_tile.erb
index 702e551..c1ca994 100644
--- a/layouts/partials/_events_tile.erb
+++ b/layouts/partials/_events_tile.erb
@@ -8,6 +8,9 @@
<% end %>
+ <% if @event[:image] %>
+
+ <% end %>