Skip to content

Commit

Permalink
Show controllers on the Agent show page
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jul 4, 2023
1 parent cc1f8c7 commit 962362c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/agents/show.html.erb
Expand Up @@ -83,6 +83,13 @@
</p>
<% end %>
<% if (agents = @agent.controllers).length > 0 %>
<p>
<b>Controllers:</b>
<%= agents.map { |agent| link_to(agent.name, agent_path(agent)) }.to_sentence.html_safe %>
</p>
<% end %>
<% if @agent.can_create_events? %>
<p>
<b>Keep events:</b>
Expand Down

0 comments on commit 962362c

Please sign in to comment.