aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/uuid_resolver/new.html.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/uuid_resolver/new.html.erb b/app/views/uuid_resolver/new.html.erb
new file mode 100644
index 0000000..1cefbfc
--- /dev/null
+++ b/app/views/uuid_resolver/new.html.erb
@@ -0,0 +1,15 @@
+<h1>Resolving <%= @resolver.uuid %></h1>
+<p>Found <%= pluralize(@resolver.count, "result") %>.</p>
+
+<% if @resolver.count == 1 %>
+ <%= render @resolver.record %>
+<% elsif @resolver.count > 1 %>
+ <% @resolver.records.each do |rec| %>
+ <%= render rec %>
+ <% end %>
+<% end %>
+
+<% content_for :debug do %>
+ <%= h @resolver.records.inspect %>
+<% end %>
+