<h1><%= t("scaffold.pagetitle_index", model: Report.model_name.human(count: 2)) %></h1>

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= Report.human_attribute_name(:id) %></th>
      
        <th><%= Report.human_attribute_name(:name) %></th>
      
        <th><%= Report.human_attribute_name(:comment) %></th>
        <th></th>
        <th></th>
  </thead>
  <tbody>
    <% @reports.each do |report| %>
      <tr>
        <td><%= link_to(report.id, url_for(report)) %></td>
        
          <td><%= link_to(report.name, url_for(report)) %></td>
        
          <td><%= link_to(truncate(report.comment.to_plain_text), url_for(report)) if report.comment %></td>
          <td><%= l(report.created_at, format: :short) %></td>
          <td><%= l(report.updated_at, format: :short) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<div class="action-row">
  <%= link_to t("scaffold.link_new", model: Report.model_name.human), new_report_path %>
</div>
