in progress button

This commit is contained in:
Josh 2018-06-07 16:39:25 -04:00
parent 657feb777f
commit 2b28c750a8
2 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,7 @@ class RoomsController < ApplicationController
# GET /r/:room_uid
def show
if current_user && @room.owned_by?(current_user)
@is_running = @room.is_running?
@recordings = @room.recordings
else
render :join

View File

@ -27,7 +27,11 @@
</form>
</div>
<div class="col-lg-3 col-sm-12 bottom-div mt-5">
<%= link_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<% if @is_running %>
<div class="btn btn-success active btn-block px-7 start-button float-right">In Progress</div>
<% else %>
<%= link_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<% end %>
</div>
</div>