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