Add live icon
This commit is contained in:
parent
18f2399c0e
commit
b2d8ee0dd9
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
<% if lecture.attended? %>
|
<% if lecture.attended? %>
|
||||||
<i class="fa fa-chalkboard-user text-green-700"></i>
|
<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? %>
|
<% elsif lecture.start_time.past? %>
|
||||||
<i class="fa fa-times text-red-700"></i>
|
<i class="fa fa-times text-red-700"></i>
|
||||||
<% else %>
|
<% else %>
|
||||||
@ -60,7 +62,11 @@
|
|||||||
class: 'action-button'
|
class: 'action-button'
|
||||||
%>
|
%>
|
||||||
<% elsif lecture.start_time.past? && !lecture.attended? %>
|
<% 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,
|
<%= button_to start_label,
|
||||||
lectures_start_path(id: lecture.id),
|
lectures_start_path(id: lecture.id),
|
||||||
class: 'action-button'
|
class: 'action-button'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user