Add HTML version of the ratings

This commit is contained in:
Petko Bordjukov 2015-10-13 14:25:50 +03:00
parent f7c5850c11
commit e997f1d042
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<tr>
<td><%= talk.id %></td>
<td><%= talk.event_type.name %></td>
<td><%= talk.title %></td>
<td><%= talk.subtitle %></td>
<td><%= @ratings[talk.id] %></td>
</tr>

View File

@ -0,0 +1,14 @@
<table>
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>Title</th>
<th>Subtitle</th>
<th>Votes</th>
</tr>
</thead>
<tbody>
<%= render partial: 'talk', collection: @talks %>
</tbody>
</table>