From e3199a097f7a953d4353bb3403152a167e931655 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Fri, 6 Oct 2023 20:19:44 +0100 Subject: [PATCH] Move recording to its own column --- app/views/attendance_tracker/index.html.erb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/app/views/attendance_tracker/index.html.erb b/app/views/attendance_tracker/index.html.erb index fe3c1bf..48f3b6a 100644 --- a/app/views/attendance_tracker/index.html.erb +++ b/app/views/attendance_tracker/index.html.erb @@ -4,8 +4,8 @@ <% @courses.each do |course| %>
-
-
+
+

<%= course.title %>

@@ -15,6 +15,7 @@ + @@ -36,9 +37,8 @@ <%= lecture.start_time.to_fs(:dmy) %> - <% if lecture.cancelled %> - + <% else %> - <% if lecture.recording %> - <%= link_to "Open recording", lecture.recording&.recording_url %> - <% end %> + <% end %>
Date Status ActionRecording
+
Cancelled
@@ -55,6 +55,8 @@ %>
+
@@ -83,10 +85,12 @@ class: 'action-button' %>
+ <% end %> +
+ <% if lecture.recording %> + <%= link_to "Open recording", lecture.recording&.recording_url %> <% end %>