about summary refs log tree commit diff
path: root/app/views/machines
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-02-01 09:38:44 -0500
committerBen Harris <ben@tilde.team>2022-02-01 09:38:44 -0500
commit9150b575075db8a2de75ab476c9c7801d2352242 (patch)
treee336d6242e6f7f9a10f4b040947e0a16414cb73b /app/views/machines
parentc00902c956dd336fa1bdc74603312c1c95ac9d6b (diff)
tidy up a bit
Diffstat (limited to 'app/views/machines')
-rw-r--r--app/views/machines/index.html.erb8
-rw-r--r--app/views/machines/show.html.erb7
2 files changed, 11 insertions, 4 deletions
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? %><p style="color: green"><%= notice %></p><% end %>
+<% if not notice.nil? %><p style="color: green"><%= notice %></p>
+<% end %>
 
 <h1>Pins</h1>
 
 <div id="machines">
   <% @machines.each do |machine| %>
-    <%= render machine %>
+    <p id="<%= dom_id machine %>">
+      <%= link_to machine.name, machine %>
+      <small><%= machine.edition %></small>
+    </p>
   <% end %>
 </div>
 
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? %><p style="color: green"><%= notice %></p><% end %>
+<% if not notice.nil? %><p style="color: green"><%= notice %></p>
+<% end %>
+
+<h1><%= @machine.name %></h1>
 
 <%= render "form", machine: @machine %>
 
 <div>
   <%= 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}?" } %>
 </div>