Merge pull request #2008 from betagouv/fix_demande_view

ManagerDemandeView: does not bug when there is no demand
This commit is contained in:
gregoirenovel 2018-05-31 13:52:14 +02:00 committed by GitHub
commit 9c57a7f786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,8 @@
</h1> </h1>
</header> </header>
<section class="main-content__body main-content__body--flush"> <% if @pending_demandes.present? %>
<section class="main-content__body main-content__body--flush">
<table> <table>
<thead> <thead>
<% keys = @pending_demandes.first.keys %> <% keys = @pending_demandes.first.keys %>
@ -58,4 +59,7 @@
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
</section> </section>
<% else %>
<h1>Aucune demande</h1>
<% end %>