Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 487 Bytes
<%# Expects 'rooms', an array of Rooms. %>
<div id="roomList" class="section">
<h4>rooms</h4>
<% if rooms.empty? %>
<div class="metaText">no rooms have been created</div>
<% else %>
<ul>
<% rooms.each do |room_name, room| %>
<li><a href="/rooms/<%= room_name %>"><%= room_name %></a></li>
<% end %>
</ul>
<% end %>
</div>
<div id="newRoom" class="section">
<h4>create new room
<form>
<input />
<button>create</button>
</form>
</div>