From 9150b575075db8a2de75ab476c9c7801d2352242 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 1 Feb 2022 09:38:44 -0500 Subject: tidy up a bit --- app/views/machines/index.html.erb | 8 ++++++-- app/views/machines/show.html.erb | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'app/views/machines') diff --git a/app/views/machines/index.html.erb b/app/views/machines/index.html.erb index a20a543..bde59c2 100644 --- a/app/views/machines/index.html.erb +++ b/app/views/machines/index.html.erb @@ -1,10 +1,14 @@ -<% if not notice.nil? %>

<%= notice %>

<% end %> +<% if not notice.nil? %>

<%= notice %>

+<% end %>

Pins

<% @machines.each do |machine| %> - <%= render machine %> +

+ <%= link_to machine.name, machine %> + <%= machine.edition %> +

<% end %>
diff --git a/app/views/machines/show.html.erb b/app/views/machines/show.html.erb index 4bba20c..584dac6 100644 --- a/app/views/machines/show.html.erb +++ b/app/views/machines/show.html.erb @@ -1,9 +1,12 @@ -<% if not notice.nil? %>

<%= notice %>

<% end %> +<% if not notice.nil? %>

<%= notice %>

+<% end %> + +

<%= @machine.name %>

<%= render "form", machine: @machine %>
<%= link_to "Delete #{@machine.name} ❌", @machine, data: { turbo_method: :delete, - turbo_confirm: "Are you sure you want to remove #{@machine.name}?"} %> + turbo_confirm: "Are you sure you want to remove #{@machine.name}?" } %>
-- cgit 1.4.1