Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 869 Bytes
<%# Expects:
room - a Room.
choices - an array of possible valid votes
<div id="roomHeader" class="section">
<span id="backLink"><a href="/">home</a></span>
<span id="roomName"><%= room_name %></span>
<span id="reset"><a href="#">reset room</a></span>
<div id="choicesSection" class="section">
<h4>your vote</h4>
<div id="choices">
<% choices.each do |choice| %>
<button><%= choice %></button>
<% end %>
<div id="currentVotes" class="section">
<h4>current votes</h4>
<div id="votes">
<span class="metaText">loading&hellip;</span>
<div id="voteHistory" class="section">
<h4>previous result</h4>
<div id="result">
<span class="metaText">no previous vote</span>
<script type="text/javascript">
Room.instance = new Room(<%= %["#{room_name}"] %>);