forked from External/greenlight
		
	show all rooms
This commit is contained in:
		@@ -14,7 +14,7 @@
 | 
			
		||||
			<div class="d-flex ml-auto">
 | 
			
		||||
				<% if current_user %>
 | 
			
		||||
					<a class="px-5 ml-2 mt-1" href="" data-toggle="modal" data-target="#createRoomModal">
 | 
			
		||||
						<i class="fas fa-plus"></i> Create Room
 | 
			
		||||
						<i class="fas fa-plus"></i>  Create Room
 | 
			
		||||
					</a>
 | 
			
		||||
					<div class="dropdown">
 | 
			
		||||
						<a href="#" class="nav-link pr-0" data-toggle="dropdown">
 | 
			
		||||
 
 | 
			
		||||
@@ -21,13 +21,16 @@
 | 
			
		||||
          <div class="item-action dropdown">
 | 
			
		||||
            <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
 | 
			
		||||
            <div class="dropdown-menu dropdown-menu-right">
 | 
			
		||||
              <%= button_to root_path, class: "dropdown-item" do %>
 | 
			
		||||
                <i class="dropdown-icon fe fe-link"></i> Copy Link
 | 
			
		||||
              <% end %>
 | 
			
		||||
              <% if room != current_user.main_room %>
 | 
			
		||||
                <%= button_to make_home_path(room), class: "dropdown-item" do %>
 | 
			
		||||
                  <i class="dropdown-icon fas fa-home"></i> Make Home Room
 | 
			
		||||
                <% end %>
 | 
			
		||||
              <% end %>
 | 
			
		||||
              <%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
 | 
			
		||||
                <i class="dropdown-icon far fa-trash-alt"></i> Delete
 | 
			
		||||
                <%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
 | 
			
		||||
                  <i class="dropdown-icon far fa-trash-alt"></i> Delete
 | 
			
		||||
                <% end %>
 | 
			
		||||
              <% end %>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@
 | 
			
		||||
                <i class="fas fa-chalkboard-teacher"></i>
 | 
			
		||||
              </span>
 | 
			
		||||
              <%= f.text_field :name, id: "room-name", class: "form-control", placeholder: "Enter a room name...", autocomplete: :off %>
 | 
			
		||||
              <div class="invalid-feedback text-left">Room name cannot be blank.</div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <label class="custom-switch mt-5 mb-5 float-left">
 | 
			
		||||
              <%= f.check_box :auto_join, class: "custom-switch-input", checked: true %>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user