<%- model_class = Recenzy.new.class -%>
<div class="page-header">
  <h1>Zobraziť recenzie</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Recenzia) %></th> -->
      <th><%= model_class.human_attribute_name(:Datum) %></th>
      <th><%= model_class.human_attribute_name(:Popis) %></th>
      <th><%= model_class.human_attribute_name(:Alias) %></th>
      <th><%= model_class.human_attribute_name(:ID_Podujatie) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @recenzies.each do |recenzy| %>
      <tr>
<!--        <td><#%= link_to recenzy.id, recenzy_path(recenzy) %></td> -->
<!--        <td><#%= recenzy.ID_Recenzia %></td> -->
        <td><%= recenzy.Datum %></td>
        <td><%= recenzy.Popis %></td>
        <td><%= recenzy.Alias %></td>
        <td><%= recenzy.ID_Podujatie %></td>
<!--        <td><#%=l recenzy.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_recenzy_path(recenzy), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      recenzy_path(recenzy),
                      :method => :delete,
                      :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
                      :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'Nový',
            new_recenzy_path,
            :class => 'btn btn-primary' %>
