a11yist/app/views/link_categories/index.html.erb
david 63fc206c27
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s
A lot :)
2024-09-05 22:54:38 +02:00

29 lines
919 B
Text

<h1><%= t("scaffold.pagetitle_index", model: LinkCategory.model_name.human(count: 2)) %></h1>
<table class="table table-striped">
<thead>
<tr>
<th><%= LinkCategory.human_attribute_name(:id) %></th>
<th><%= LinkCategory.human_attribute_name(:name) %></th>
<th><%= LinkCategory.human_attribute_name(:description) %></th>
</thead>
<tbody>
<% @link_categories.each do |link_category| %>
<tr>
<td><%= link_to(link_category.id, url_for(link_category)) %></td>
<td><%= link_to(link_category.name, url_for(link_category)) %></td>
<td><%= link_to(truncate(link_category.description.to_plain_text), url_for(link_category)) %></td>
</tr>
<% end %>
</tbody>
</table>
<div class="action-row">
<%= link_to t("scaffold.link_new", model: LinkCategory.model_name.human), new_link_category_path %>
</div>