a11yist/app/views/reports/index.html.erb

29 lines
No EOL
839 B
Text

<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_html) %></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(strip_tags(report.comment)), url_for(report)) if report.comment %></td>
</tr>
<% end %>
</tbody>
</table>
<div class="action-row">
<%= link_to t("scaffold.link_new", model: Report.model_name.human), new_report_path %>
</div>