From b2d8ee0dd916bba8b10ff4346c49e53f2b5202a0 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Sun, 8 Oct 2023 16:26:54 +0100 Subject: [PATCH] Add live icon --- app/views/lectures/_lecture.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'