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,6 +12,7 @@
<%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %> <%= page_entries_info @officers, entry_name: t('admin.poll_officers.officer.entry_name') %>
</h3> </h3>
<% if @officers.any? %>
<table id="officers"> <table id="officers">
<thead> <thead>
<tr> <tr>
@@ -49,3 +50,4 @@
</table> </table>
<%= paginate @officers %> <%= paginate @officers %>
<% end %>