| Lecture | Date | Status | Action | ||||
|---|---|---|---|---|---|---|---|
| Week <%= week_number %> | |||||||
| <%= lecture.title %> | <%= lecture.start_time.to_fs(:dmy) %> | <% if lecture.cancelled %>
Cancelled
|
<% elsif lecture.start_time.future? %>
<% else %> |
<% if lecture.attendance.nil? %>
<% elsif lecture.attendance.kind == 'concurrent' %>
<% elsif lecture.attendance.kind == 'catchup' %>
<% else %>
<% lecture.attendance.kind %>
<% end %>
|
<% if lecture.attendance.nil? %> <%= button_to "Start", lectures_start_path(id: lecture.id), class: 'action-button' %> <% else %> <% if lecture.recording %> <%= link_to "Open recording", lecture.recording&.recording_url %> <% end %> <% end %> | <% end %>||