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

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= Checklist.human_attribute_name(:id) %></th>
      
        <th><%= Checklist.human_attribute_name(:name) %></th>
      
        <th><%= Checklist.human_attribute_name(:description_html) %></th>
      
  </thead>
  <tbody>
    <% @checklists.each do |checklist| %>
      <tr>
        <td><%= link_to(checklist.id, url_for(checklist)) %></td>
        
          <td><%= link_to(checklist.name, url_for(checklist)) %></td>
        
          <td><%= link_to(truncate(strip_tags(checklist.description_html.to_s)), url_for(checklist)) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

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