Render yearly view
This commit is contained in:
@@ -4,6 +4,11 @@ first_days = (1..12).map do |index|
|
||||
end
|
||||
%>
|
||||
|
||||
<div class="w-1/3 mx-auto flex justify-between pb-4">
|
||||
<%= link_to (@year-1), root_path(year: @year-1) %>
|
||||
<%= @year %>
|
||||
<%= link_to (@year+1), root_path(year: @year+1) %>
|
||||
</div>
|
||||
<div class="container mx-auto flex justify-between">
|
||||
<% first_days.each do |first_day| %>
|
||||
<div class="border-l w-full">
|
||||
|
||||
Reference in New Issue
Block a user