From a9fdcbc3e7fb43be9b5b25b56c80d11cec970f79 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 17 Dec 2023 20:04:56 +0000 Subject: Gone for light green table and no bootstrap --- app/controllers/events_controller.rb | 2 +- app/views/events/index.html.erb | 36 +++++++++++++++++++++++++++++------- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index d9e390a..058486d 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -4,7 +4,7 @@ class EventsController < ApplicationController # GET /events or /events.json def index @events = Event.all.order(date: :asc) - @january_dates = Date.new(2023, 01, 01)..Date.new(2023, 01, 31) + @january_dates = Date.new(2024, 01, 01)..Date.new(2024, 01, 31) render "index" end diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index f07b5df..5c9402f 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -6,10 +6,29 @@ <%# <%= link_to "New event", new_event_path %1> %> - + + +
+ + + - + + @@ -17,17 +36,20 @@ <% @january_dates.each do |e| %> <% if e.saturday? %> - - + + + <% elsif e.sunday? %> - - + + + <% else %> - + + <% end %> -- cgit v1.2.3
January DateDateBunter Day
<%= e %><%= e.strftime("%A") %><%= e.day %>Toss<%= e.strftime("%A") %>
<%= e %><%= e.strftime("%A") %><%= e.day %>Toss<%= e.strftime("%A") %>
<%= e %><%= e.day %>Toss <%= e.strftime("%A") %>