hides table if there are no officers

This commit is contained in:
Alberto Garcia Cabeza
2016-12-28 12:53:04 +01:00
parent 8e3f80628d
commit 69ab67a81f

View File

@@ -12,7 +12,8 @@
<%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
</h3>
<table id="officers">
<% if @officers.any? %>
<table id="officers">
<thead>
<tr>
<th><%= t('admin.poll_officers.officer.name') %></th>
@@ -46,6 +47,7 @@
</tr>
<% end %>
</tbody>
</table>
</table>
<%= paginate @officers %>
<%= paginate @officers %>
<% end %>