/users: show vote count, fixes #10
This commit is contained in:
commit
2db4d18bd3
|
@ -14,6 +14,7 @@
|
|||
<th>Vote</th>
|
||||
<th>Proxy</th>
|
||||
<th>Presence</th>
|
||||
<th>Votes</th>
|
||||
<th colspan="2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -30,6 +31,7 @@
|
|||
<td><%= user.vote %></td>
|
||||
<td><%= user.proxy %></td>
|
||||
<td><%= user.presence %></td>
|
||||
<td><%= Vote.where(user_id: user.id).length %></td>
|
||||
<!--<td><%= link_to 'Show', user_path(user) %></td>-->
|
||||
<td><%= link_to 'Edit', edit_user_path(user) %></td>
|
||||
<td><%= link_to 'Destroy', user_path(user), method: :delete, data: { confirm: 'Are you sure you wish to destroy this user?' } %></td>
|
||||
|
|
Loading…
Reference in New Issue