forked from External/greenlight
		
	in progress button
This commit is contained in:
		| @@ -25,6 +25,7 @@ class RoomsController < ApplicationController | |||||||
|   # GET /r/:room_uid |   # GET /r/:room_uid | ||||||
|   def show |   def show | ||||||
|     if current_user && @room.owned_by?(current_user) |     if current_user && @room.owned_by?(current_user) | ||||||
|  |       @is_running = @room.is_running? | ||||||
|       @recordings = @room.recordings |       @recordings = @room.recordings | ||||||
|     else |     else | ||||||
|       render :join |       render :join | ||||||
|   | |||||||
| @@ -27,7 +27,11 @@ | |||||||
|         </form> |         </form> | ||||||
|       </div> |       </div> | ||||||
|       <div class="col-lg-3 col-sm-12 bottom-div mt-5"> |       <div class="col-lg-3 col-sm-12 bottom-div mt-5"> | ||||||
|  |         <% 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" %> |           <%= link_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %> | ||||||
|  |         <% end %> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user