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

32 lines
998 B
Text
Raw Normal View History

<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>
2024-07-19 02:29:18 +02:00
<th><%= Report.human_attribute_name(:comment_html) %></th>
2024-07-20 16:52:12 +02:00
<th></th>
<th></th>
</thead>
<tbody>
<% @reports.each do |report| %>
<tr>
2024-07-19 02:29:18 +02:00
<td><%= link_to(report.id, url_for(report)) %></td>
2024-07-19 02:29:18 +02:00
<td><%= link_to(report.name, url_for(report)) %></td>
2024-07-26 00:59:00 +02:00
<td><%= link_to(truncate(report.comment_html.to_plain_text), url_for(report)) if report.comment_html %></td>
2024-07-20 16:52:12 +02:00
<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 %>
2024-07-26 00:59:00 +02:00
</div>