diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/agents/_agent.html.erb | 2 | ||||
-rw-r--r-- | app/views/application/_user_info.html.erb | 5 | ||||
-rw-r--r-- | app/views/uuid_resolver/new.html.erb | 15 | ||||
-rw-r--r-- | app/views/welcome/dashboard.html.erb | 2 |
4 files changed, 22 insertions, 2 deletions
diff --git a/app/views/agents/_agent.html.erb b/app/views/agents/_agent.html.erb index fda8bd0..aaeb9b0 100644 --- a/app/views/agents/_agent.html.erb +++ b/app/views/agents/_agent.html.erb @@ -1,7 +1,7 @@ <article class="agent" id="agent-<%= agent.to_param %>"> <header> <h1><%= link_to agent.name, agent_url(agent) %></h1> - <h2><%= link_to agent_url(agent) %></h1> + <h2><%= link_to agent_url(agent), agent_url(agent) %></h1> </head> <% if current_agent == agent %> <section class="agent-info"> diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index 048e6fb..0f003bb 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -11,3 +11,8 @@ <% end %> </nav> </section> + +<% content_for :debug do %> +<%= @current_user&.avatar_url %> +<% end %> + 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 %> + diff --git a/app/views/welcome/dashboard.html.erb b/app/views/welcome/dashboard.html.erb index 242fc58..42b827a 100644 --- a/app/views/welcome/dashboard.html.erb +++ b/app/views/welcome/dashboard.html.erb @@ -4,7 +4,7 @@ <p><%= form_for current_agent, url: '/my/current_agent', method: :patch do |f| %> En cours : <%= f.submit('select') %> - <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }), selected: current_agent.id) %> + <%= f.select(:id, options_for_select(current_user.agents.map { |a| [a.name, a.id] }, current_agent.id)) %> <% end %></p> |