/users: show vote count, fixes #10

This commit is contained in:
Kiara Grouwstra 2023-02-18 22:58:46 +01:00
commit 2db4d18bd3
Signed by: kiara
GPG Key ID: 47D3B7604FFCA83A
1 changed files with 2 additions and 0 deletions

View File

@ -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>