Add better capacity for live lectures

This commit is contained in:
2023-10-08 16:24:31 +01:00
parent 9da49ceed8
commit 18f2399c0e
3 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -60,7 +60,8 @@
class: 'action-button'
%>
<% elsif lecture.start_time.past? && !lecture.attended? %>
<%= button_to "Start",
<% start_label = if lecture.is_live? then "Join" else "Start" end %>
<%= button_to start_label,
lectures_start_path(id: lecture.id),
class: 'action-button'
%>