changed layout to tiles with banner background
This commit is contained in:
parent
0f0d0a8707
commit
0bd1c3537c
2 changed files with 42 additions and 17 deletions
|
@ -8,26 +8,48 @@ order: 20
|
|||
<div class="content">
|
||||
<h1>Upcoming events</h1>
|
||||
</div>
|
||||
<div class="container">
|
||||
|
||||
<% upcoming_events.each do |event| %>
|
||||
<% upcoming_events.each_slice(2) do |slice| %>
|
||||
<!-- <hr class="divider"> -->
|
||||
<div class="columns">
|
||||
<% slice.each do |event| %>
|
||||
<% if (sub_events(event)).empty? %>
|
||||
<%= render '/partials/_event_preview.*', event: event %>
|
||||
<!--<%= render '/partials/_event_preview.*', event: event %>-->
|
||||
<div class="tile is-parent ">
|
||||
<%= render '/partials/_tile.*',
|
||||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
htmlclass:"highlighted" %>
|
||||
</div>
|
||||
<% else %>
|
||||
<% sub_events(event).each do |sub_event| %>
|
||||
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="content ">
|
||||
<h1>Past events</h1>
|
||||
</div>
|
||||
|
||||
<% past_events.each do |event| %>
|
||||
<% past_events.each_slice(2) do |slice| %>
|
||||
<!-- <hr class="divider"> -->
|
||||
<div class="columns">
|
||||
<% slice.each do |event| %>
|
||||
<% if (sub_events(event)).empty? %>
|
||||
<%= render '/partials/_event_preview.*', event: event %>
|
||||
<!--<%= render '/partials/_event_preview.*', event: event %>-->
|
||||
<div class="tile is-parent ">
|
||||
<%= render '/partials/_tile.*',
|
||||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
htmlclass:"highlighted" %>
|
||||
</div>
|
||||
<% else %>
|
||||
<% sub_events(event).each do |sub_event| %>
|
||||
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
||||
|
@ -35,3 +57,6 @@ order: 20
|
|||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<%end%>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue