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