forked from External/greenlight
sessions and fixes
This commit is contained in:
@ -10,12 +10,14 @@
|
||||
<div class="center-panel-wrapper">
|
||||
<%= render layout: 'shared/center_panel' do %>
|
||||
<div class="center-block center-panel-content-size col-xs-12">
|
||||
<%= render 'shared/meeting_name_form' %>
|
||||
|
||||
<div class="row">
|
||||
<%= render 'main/invite_join' %>
|
||||
</div>
|
||||
|
||||
<%= form_for(:meeting, url: create_meeting_path) do |f| %>
|
||||
<div class="input-field col s12">
|
||||
<%= f.label :name, "Name" %>
|
||||
<%= f.text_field :name %>
|
||||
</div>
|
||||
<br>
|
||||
<%= f.submit "Start Meeting", class: "btn white-text light-green" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
@ -31,4 +33,4 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
11
app/views/meetings/show.html.erb
Normal file
11
app/views/meetings/show.html.erb
Normal file
@ -0,0 +1,11 @@
|
||||
<h4>This is an unauthenticated meeting page.</h4>
|
||||
|
||||
<% if current_user %>
|
||||
<%= link_to "Join", join_meeting_path(uid: @meeting.uid), {method: :post} %>
|
||||
<% else %>
|
||||
<p>Enter a name to join the session.</p>
|
||||
<%= form_tag join_meeting_path do %>
|
||||
<%= text_field_tag "join_name" %>
|
||||
<%= submit_tag "Join" %>
|
||||
<% end %>
|
||||
<% end %>
|
10
app/views/rooms/sessions.html.erb
Normal file
10
app/views/rooms/sessions.html.erb
Normal file
@ -0,0 +1,10 @@
|
||||
Sessions
|
||||
<br><br>
|
||||
<%= @meeting.recordings %>
|
||||
|
||||
<% @meeting.recordings.each do |rec| %>
|
||||
<p><%= rec[:metadata][:meetingName] %></p>
|
||||
<% Array.wrap(rec[:playback][:format]).each do |form| %>
|
||||
<%= link_to form[:type], form[:url] %>
|
||||
<% end %>
|
||||
<% end %>
|
@ -4,8 +4,7 @@
|
||||
<p><%= @room.meeting.uid %><p>
|
||||
<p><%= @room.uid %><p>
|
||||
|
||||
<%= link_to 'Sessions', root_path %>
|
||||
<%= link_to 'Recordings', root_path %>
|
||||
<%= link_to 'Sessions', sessions_path %>
|
||||
<%= link_to 'Settings', root_path %>
|
||||
|
||||
<p>Click below to join the meeting.</p>
|
||||
@ -18,4 +17,4 @@
|
||||
|
||||
<br><br>
|
||||
|
||||
<%= link_to 'Logout', logout_path %>
|
||||
<%= link_to 'Logout', logout_path %>
|
Reference in New Issue
Block a user