Add live icon
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
<% if lecture.attended? %>
|
||||
<i class="fa fa-chalkboard-user text-green-700"></i>
|
||||
<% elsif lecture.live? %>
|
||||
<i class="fa fa-video text-blue-700"></i>
|
||||
<% elsif lecture.start_time.past? %>
|
||||
<i class="fa fa-times text-red-700"></i>
|
||||
<% 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'
|
||||
|
||||
Reference in New Issue
Block a user