add room functionality

This commit is contained in:
Josh
2018-06-01 11:55:52 -04:00
parent 1bcd176285
commit 45fb18e609
9 changed files with 157 additions and 60 deletions

View File

@ -1,13 +1,13 @@
<div class="room-section pb-1">
<div class="container">
<div class="row pt-8">
<div class="row pt-9">
<div class="col-lg-9 col-sm-12">
<h1 id="user-text" class="display-3 text-left text-primary mb-3"><%= @room.name %>
<% if current_user.main_room == @room %>
<i class="fas fa-home align-top" style="font-size: 22px;"></i>
<% end %>
</h1>
<h4 class="text-left text-primary mb-6">0 Sessions | 0 Recordings</h4>
<h4 class="text-left text-primary mb-6"><%= @room.sessions %> Sessions | <%= @recordings.length %> Recordings</h4>
<label class="form-label text-primary">Invite Participants</label>
<form class="form-inline">
<div class="input-icon" style="width: 45%;">
@ -43,7 +43,7 @@
</div>
</div>
<%= render "shared/sessions", recordings: @room.recordings %>
<%= render "shared/sessions", recordings: @recordings %>
<script>
var invite_url;