sessions and fixes

This commit is contained in:
Josh
2018-05-22 16:58:11 -04:00
parent f189c98c56
commit 434021239c
10 changed files with 98 additions and 27 deletions

View File

@ -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>

View 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 %>

View 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 %>

View File

@ -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 %>