raven/views/item/list.erb

22 lines
493 B
Plaintext
Raw Normal View History

2022-12-08 17:26:44 -05:00
<div class="row">
<div class="twelve columns">
<h1>Hardware Inventory List</h1>
2022-12-08 17:26:44 -05:00
</div>
</div>
2022-12-07 20:12:23 -05:00
2022-12-08 17:26:44 -05:00
<div class="row">
<div class="twelve columns">
<p><a href="/item/create">Create new item</a></p>
<% if items.length > 0 %>
<ul>
<% items.each do |item| %>
<li><a href="/item/<%= item.id %>"><%= item.name %></a></li>
2022-12-08 17:26:44 -05:00
<% end %>
</ul>
<% else %>
<p>There is nothing registered in your inventory yet.</p>
<% end %>
</div>
</div>