gauge/app/views/home/ratings.html.erb

25 lines
562 B
Plaintext
Raw Normal View History

2015-10-13 14:25:50 +03:00
<table>
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>Title</th>
<th>Subtitle</th>
<th>Votes</th>
2015-10-15 21:38:46 +03:00
<th>%</th>
2015-10-13 14:25:50 +03:00
</tr>
</thead>
<tbody>
2016-10-06 20:30:28 +03:00
<% @talks.each do |talk| %>
2016-10-10 20:20:56 +03:00
<tr class="rating">
2016-10-06 20:30:28 +03:00
<td><%= talk.id %></td>
<td><%= talk.event_type.name %></td>
<td><%= talk.title %></td>
<td><%= talk.subtitle %></td>
<td><%= @ratings[talk.id] %></td>
<td><%= "%.2f%" % Rational(100 * @ratings[talk.id], @votes_count).to_f %></td>
</tr>
<% end %>
2015-10-13 14:25:50 +03:00
</tbody>
</table>