aboutsummaryrefslogtreecommitdiff
path: root/app/views/uuid_resolver
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-03-22 15:37:40 +0100
committerhellekin <hellekin@cepheide.org>2021-03-22 15:37:40 +0100
commitcd49369079dfd5fc7c2530a9d601422dab26718b (patch)
treed418d041e9c0eb307ca6f25fa2c7b138a8c5147c /app/views/uuid_resolver
parent8c015485ad2ea61d128a38e7439d8b0574adc169 (diff)
parent15096ed20f918d585f7b49610f89deefda0a20b3 (diff)
downloadincommon-map-cd49369079dfd5fc7c2530a9d601422dab26718b.tar.gz
Merge branch 'uuid-resolver' into main
Diffstat (limited to 'app/views/uuid_resolver')
-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 %>
+