2024-07-16 20:22:59 +02:00
|
|
|
<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-10-31 23:13:18 +01:00
|
|
|
<th><%= Report.human_attribute_name(:comment) %></th>
|
2024-07-20 16:52:12 +02:00
|
|
|
<th></th>
|
|
|
|
|
<th></th>
|
2024-07-16 20:22:59 +02:00
|
|
|
</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-16 20:22:59 +02:00
|
|
|
|
2024-07-19 02:29:18 +02:00
|
|
|
<td><%= link_to(report.name, url_for(report)) %></td>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
2024-10-31 23:13:18 +01:00
|
|
|
<td><%= link_to(truncate(report.comment.to_plain_text), url_for(report)) if report.comment %></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>
|
2024-07-16 20:22:59 +02:00
|
|
|
</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>
|