about summary refs log tree commit diff
path: root/app/views/machines/index.html.erb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-01-31 14:00:13 -0500
committerBen Harris <ben@tilde.team>2022-01-31 14:00:13 -0500
commitc95a61fc056f6a2d7fdb82f9288948a890a3bac5 (patch)
treeac830576036bdc54d742668345680e452af69b99 /app/views/machines/index.html.erb
parentc5b9fe77a8a0e1c2e6a051b700c5a5d4b98ff6fb (diff)
switch to table, add total counts
Diffstat (limited to 'app/views/machines/index.html.erb')
-rw-r--r--app/views/machines/index.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/machines/index.html.erb b/app/views/machines/index.html.erb
index 8237518..3791f6c 100644
--- a/app/views/machines/index.html.erb
+++ b/app/views/machines/index.html.erb
@@ -1,4 +1,4 @@
-<p style="color: green"><%= notice %></p>
+<% if not notice.nil? %><p style="color: green"><%= notice %></p><% end %>
 
 <h1>Pins</h1>
 
@@ -8,5 +8,7 @@
   <% end %>
 </div>
 
+<p><%= pluralize(@machines.count, 'total pin') %></p>
+
 <hr>
 <%= link_to "Add a pin", new_machine_path %>