diff options
author | hellekin <hellekin@cepheide.org> | 2021-03-22 15:37:40 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2021-03-22 15:37:40 +0100 |
commit | cd49369079dfd5fc7c2530a9d601422dab26718b (patch) | |
tree | d418d041e9c0eb307ca6f25fa2c7b138a8c5147c /app/views/uuid_resolver | |
parent | 8c015485ad2ea61d128a38e7439d8b0574adc169 (diff) | |
parent | 15096ed20f918d585f7b49610f89deefda0a20b3 (diff) | |
download | incommon-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.erb | 15 |
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 %> + |