From 962362cf2369fbd4c695a2c8aef0efe9514c991b Mon Sep 17 00:00:00 2001
From: Akinori MUSHA
Date: Tue, 4 Jul 2023 17:05:06 +0900
Subject: [PATCH] Show controllers on the Agent show page
---
app/views/agents/show.html.erb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/app/views/agents/show.html.erb b/app/views/agents/show.html.erb
index 1073b7dc84..8234d2edb4 100644
--- a/app/views/agents/show.html.erb
+++ b/app/views/agents/show.html.erb
@@ -83,6 +83,13 @@
<% end %>
+ <% if (agents = @agent.controllers).length > 0 %>
+
+ Controllers:
+ <%= agents.map { |agent| link_to(agent.name, agent_path(agent)) }.to_sentence.html_safe %>
+
+ <% end %>
+
<% if @agent.can_create_events? %>
Keep events: