restructure app

This commit is contained in:
Josh
2018-05-29 15:28:29 -04:00
parent 5042e2572c
commit 32ec2bacce
31 changed files with 303 additions and 472 deletions

View File

@ -1,7 +1,7 @@
<p>The join the meeting, enter a name.</p>
<p>Enter a name to start a session.</p>
<%= form_tag join_room_path(room_uid: @room.uid) do %>
<%= form_tag room_path(@room) do %>
<%= text_field_tag "join_name" %>
<%= submit_tag "Join" %>
<% end %>
<% end %>

View File

@ -1,17 +1,6 @@
<div class="container">
<div class="row">
<div class="col-10 offset-1">
<p style="font-size: 25px;">Sessions</p>
<!-- <div class="input-icon float-right">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-icon-addon">
<i class="fe fe-search"></i>
</span>
</div> -->
<hr>
</div>
</div>
<%= render "shared/components/subtitle", subtitle: "Sessions" %>
<div class="col-10 offset-1">
<div class="card">
@ -82,9 +71,9 @@
Sessions
<br><br>
<%= @meeting.recordings %>
<%= @room.recordings %>
<% @meeting.recordings.each do |rec| %>
<% @room.recordings.each do |rec| %>
<p><%= rec[:metadata][:meetingName] %></p>
<% Array.wrap(rec[:playback][:format]).each do |form| %>
<%= link_to form[:type], form[:url] %>

View File

@ -1,20 +1,15 @@
<p>This is a room.</p>
<p><%= @room.user.name %><p>
<p><%= @room.meeting.uid %><p>
<p><%= @room.uid %><p>
<%= link_to 'Sessions', sessions_path %>
<%= link_to 'Settings', root_path %>
<p>Click below to join the meeting.</p>
<% if @room.meeting.is_running? %>
<% if @room.is_running? %>
<p>meeting is already running</p>
<% else %>
<%= link_to "Start Meeting", start_room_path(@room.uid) %>
<%= link_to "Start Room", start_room_path(@room) %>
<% end %>
<br><br>
<%= link_to 'Logout', logout_path %>
<%= link_to "Sessions", sessions_path(@room) %>