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

32 lines
1,001 B
Text
Raw Permalink 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-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>
</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-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>
</tr>
<% end %>
</tbody>
</table>
<div class="action-row">
2024-11-24 22:08:36 +01:00
<%= link_to t("scaffold.link_new", model: Report.model_name.human), new_project_report_path(@project) %>
2024-07-26 00:59:00 +02:00
</div>