From c95a61fc056f6a2d7fdb82f9288948a890a3bac5 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 31 Jan 2022 14:00:13 -0500 Subject: switch to table, add total counts --- app/views/machines/index.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/views/machines') 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 @@ -

<%= notice %>

+<% if not notice.nil? %>

<%= notice %>

<% end %>

Pins

@@ -8,5 +8,7 @@ <% end %> +

<%= pluralize(@machines.count, 'total pin') %>

+
<%= link_to "Add a pin", new_machine_path %> -- cgit 1.4.1