Sha256: 3f4e2a3a9e9715e91078f6a271bdb6451c7583b95f32af9bdaeee1bc56d53d1b

Contents?: true

Size: 873 Bytes

Versions: 23

Compression:

Stored size: 873 Bytes

Contents

<h1>RealSnapChat rooms</h1>

<% if @rooms.any? %>
<table id='rooms_list'>
  <thead>
    <tr>
      <th>Name</th>
      <th>Members</th>
      <th></th>
    </tr>
  </thead>
    <% @rooms_with_hub.each do |os| %>
    <tr id='room_<%= os.room.id %>'>
      <td><%= os.room.name %></td>
      <td class='members'><%= os.hub.raw_members.size %></td>
      <td>
        <% if os.hub.include? current_user %>
          <%= link_to 'Leave', leave_user_room_path(os.room), method: :patch %>
        <% else %>
          <%= link_to 'Join', join_user_room_path(os.room), method: :patch %>
        <% end %> |
        <%= link_to 'Destroy', user_room_path(os.room), method: :delete,
          data: {confirm: "R U sure?"} %>
      </td>
    </tr>
    <% end %>
  <tbody>
  </tbody>
</table>
<% end %>

<%= will_paginate @rooms %>

<br>

<%= link_to 'New Room', new_user_room_path %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.5.3 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.5.2 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-3.0.2 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-3.0.1 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.5.1 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.5.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.4.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.3.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-3.0.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.2.2 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.2.1 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.2.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.1.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-2.0.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-1.5.2 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-1.5.1 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-1.5.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-1.4.0 test/dummy/app/views/user/rooms/index.html.erb
loco-rails-1.3.3 test/dummy/app/views/user/rooms/index.html.erb