forked from External/greenlight
in progress button
This commit is contained in:
parent
657feb777f
commit
2b28c750a8
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue