forked from External/greenlight
		
	
		
			
				
	
	
		
			59 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<div class="background pb-1">
 | 
						|
  <div class="container">
 | 
						|
    <div class="row pt-9">
 | 
						|
      <div class="col-lg-9 col-sm-12">
 | 
						|
        <h1 id="user-text" class="display-3 text-left mb-3 font-weight-400"><%= @room.name %>
 | 
						|
          <% if current_user.main_room == @room %>
 | 
						|
            <i class="fas fa-home align-top home-indicator"></i>
 | 
						|
          <% end %>
 | 
						|
        </h1>
 | 
						|
        <h4 class="text-left mb-6"><%= @room.sessions %> Sessions | <%= @recordings.length %> Recordings</h4>
 | 
						|
        <label class="form-label">Invite Participants</label>
 | 
						|
        <form class="form-inline">
 | 
						|
          <div class="input-icon invite-link-input">
 | 
						|
            <span class="input-icon-addon">
 | 
						|
              <i class="fas fa-link"></i>
 | 
						|
            </span>
 | 
						|
            <input id="invite-url" type="text" class="form-control w-100" value="<%= request.base_url + @room.invite_path %>" readonly="">
 | 
						|
          </div>
 | 
						|
          <div id="copy" class="btn btn-primary mx-2">
 | 
						|
            <i class="fas fa-copy"></i>
 | 
						|
            Copy
 | 
						|
          </div>
 | 
						|
          <!-- <div id="email" class="btn btn-primary">
 | 
						|
            <i class="fas fa-envelope"></i>
 | 
						|
            Email
 | 
						|
          </div> -->
 | 
						|
        </form>
 | 
						|
      </div>
 | 
						|
      <div class="col-lg-3 col-sm-12 force-bottom mt-5">
 | 
						|
        <% if @is_running %>
 | 
						|
          <%= button_to "Join", room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
 | 
						|
        <% else %>
 | 
						|
          <%= button_to "Start", start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
 | 
						|
        <% end %>
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
 | 
						|
    <div class="row pt-7 pb-2">
 | 
						|
      <% if current_user.rooms.length > 1 %>
 | 
						|
        <div class="col-lg-4 col-md-6 col-sm-12">
 | 
						|
          <%= link_to current_user.main_room do %>
 | 
						|
            <%= render "shared/components/room_block", room: current_user.main_room %>
 | 
						|
          <% end %>
 | 
						|
        </div>
 | 
						|
        <% current_user.secondary_rooms.each do |room| %>
 | 
						|
          <div class="col-lg-4 col-md-6 col-sm-12">
 | 
						|
            <%= link_to room do %>
 | 
						|
              <%= render "shared/components/room_block", room: room %>
 | 
						|
            <% end %>
 | 
						|
          </div>
 | 
						|
          <%= render "shared/modals/delete_room_modal", room: room %>
 | 
						|
        <% end %>
 | 
						|
      <% end %>
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
 | 
						|
<%= render "shared/sessions", recordings: @recordings, only_public: false %>
 |