14 lines
309 B
Plaintext
14 lines
309 B
Plaintext
|
|
<%
|
||
|
|
first_days = (1..12).map do |index|
|
||
|
|
Date.new(@year, index, 1).beginning_of_month
|
||
|
|
end
|
||
|
|
%>
|
||
|
|
|
||
|
|
<div class="container mx-auto flex justify-between">
|
||
|
|
<% first_days.each do |first_day| %>
|
||
|
|
<div class="border-l w-full">
|
||
|
|
<%= render 'month', first_day: first_day, events: @events %>
|
||
|
|
</div>
|
||
|
|
<% end %>
|
||
|
|
|
||
|
|
</div>
|