diff --git a/app/views/lectures/_lecture.html.erb b/app/views/lectures/_lecture.html.erb index ef5fbeb..c24331b 100644 --- a/app/views/lectures/_lecture.html.erb +++ b/app/views/lectures/_lecture.html.erb @@ -20,6 +20,8 @@ <% if lecture.attended? %> + <% elsif lecture.live? %> + <% elsif lecture.start_time.past? %> <% else %> @@ -60,7 +62,11 @@ class: 'action-button' %> <% elsif lecture.start_time.past? && !lecture.attended? %> - <% start_label = if lecture.is_live? then "Join" else "Start" end %> + <% start_label = if lecture.is_live? then + "Join" + else + "Start" + end %> <%= button_to start_label, lectures_start_path(id: lecture.id), class: 'action-button'