<%= @room.name %> <% if current_user.main_room == @room %> <% end %>

<%= @room.sessions %> <%= t("room.sessions") %> | <%= @recordings.length %> <%= t("room.recordings") %>

<%= t("copy") %>
<% if @is_running %> <%= button_to t("room.join"), room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %> <% else %> <%= button_to t("room.start"), start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %> <% end %>
<% if current_user.rooms.length > 1 %>
<%= link_to current_user.main_room do %> <%= render "shared/components/room_block", room: current_user.main_room %> <% end %>
<% current_user.secondary_rooms.each do |room| %>
<%= link_to room do %> <%= render "shared/components/room_block", room: room %> <% end %>
<%= render "shared/modals/delete_room_modal", room: room %> <% end %> <% end %>
<%= render "shared/sessions", recordings: @recordings, only_public: false %>