From 3c55c64b3fad89b87b36ed93372ef4171f0a18bb Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Fri, 29 Sep 2023 21:40:52 +0100 Subject: [PATCH] Add future styling --- app/views/attendance_tracker/index.html.erb | 23 +++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/views/attendance_tracker/index.html.erb b/app/views/attendance_tracker/index.html.erb index be5828c..01a3ff3 100644 --- a/app/views/attendance_tracker/index.html.erb +++ b/app/views/attendance_tracker/index.html.erb @@ -25,7 +25,8 @@ <% lectures.each do |lecture| %> - + <% style = if lecture.start_time.future? then 'background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, white 10px, white 20px);' else '' end %> + <%= lecture.nice_title %> @@ -52,16 +53,16 @@ <% end %> - - <% if lecture.attendance.nil? %> - - <% else %> - <%= link_to "Open recording", lecture.recording_url %> - <% end %> - - <% end %> + + <% if lecture.attendance.nil? %> + + <% else %> + <%= link_to "Open recording", lecture.recording_url %> + <% end %> + + <% end %> <% end %> <% end %>