2022-02-01 14:38:44 +00:00
|
|
|
<% if not notice.nil? %><p style="color: green"><%= notice %></p>
|
|
|
|
<% end %>
|
2022-01-15 17:10:26 +00:00
|
|
|
|
2022-01-15 17:32:36 +00:00
|
|
|
<h1>Pins</h1>
|
2022-01-15 17:10:26 +00:00
|
|
|
|
|
|
|
<div id="machines">
|
|
|
|
<% @machines.each do |machine| %>
|
2022-02-01 14:38:44 +00:00
|
|
|
<p id="<%= dom_id machine %>">
|
|
|
|
<%= link_to machine.name, machine %>
|
|
|
|
<small><%= machine.edition %></small>
|
|
|
|
</p>
|
2022-01-15 17:10:26 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2022-01-31 19:00:13 +00:00
|
|
|
<p><%= pluralize(@machines.count, 'total pin') %></p>
|
|
|
|
|
2022-01-15 19:08:29 +00:00
|
|
|
<%= link_to "Add a pin", new_machine_path %>
|