Links, mainly...
This commit is contained in:
parent
fd42a3f173
commit
21ab02d647
69 changed files with 2258 additions and 155 deletions
29
app/views/link_categories/index.html.erb
Normal file
29
app/views/link_categories/index.html.erb
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<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(link_category.description, 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue