Sha256: 1b9f699c03463f0affb39720a8b40b65b5d07b4963f366e6d5ed2e75fc2f0665
Contents?: true
Size: 873 Bytes
Versions: 2
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> <tbody> <% @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> </table> <% end %> <%= will_paginate @rooms %> <br> <%= link_to 'New Room', new_user_room_path %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loco-rails-3.0.5 | test/dummy/app/views/user/rooms/index.html.erb |
loco-rails-3.0.4 | test/dummy/app/views/user/rooms/index.html.erb |