Skip to content

Commit

Permalink
Correção para não exibir a tabelaem vazia
Browse files Browse the repository at this point in the history
  • Loading branch information
flaprano committed Jun 19, 2017
1 parent 1e87fa1 commit e8f2a25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/translations/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div class="container">
<h1>Lista de Traduções</h1>

<% unless @translations.empty? %>
<table class="table">
<thead style="font-weight: bold;">
<tr>
Expand All @@ -21,6 +22,7 @@
<% end %>
</tbody>
</table>
<% end %>

<%= link_to 'Adicionar Tradução', new_translation_path, class: "btn btn-success" %>
</div>

0 comments on commit e8f2a25

Please sign in to comment.