Avoid showing table header when there are no results

This commit is contained in:
Andy Allan 2020-08-19 10:45:57 +02:00
parent 56ed381a7d
commit a2c1fe7930

View file

@ -38,15 +38,11 @@
</div>
</div>
<% end %>
<br />
<% if @issues.length == 0 %>
<p><%= t ".issues_not_found" %></p>
<% end %>
<br />
<table class="table table-sm">
<% else %>
<table class="table table-sm">
<thead>
<tr>
<th><%= t ".status" %></th>
@ -76,4 +72,5 @@
</tr>
<% end %>
</tbody>
</table>
</table>
<% end %>