a11yist/app/views/reports/index.html.erb
david 8b4ffb83ec
Some checks failed
/ Run tests (push) Failing after 2m3s
/ Run system tests (push) Failing after 2m17s
/ Build, push and deploy image (push) Has been skipped
Added projects
2024-11-24 22:08:36 +01:00

31 lines
1,001 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) %></th>
<th></th>
<th></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(report.comment.to_plain_text), url_for(report)) if report.comment %></td>
<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_project_report_path(@project) %>
</div>