summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-03-03 22:11:59 -0700
committermo khan <mo@mokhan.ca>2015-03-03 22:11:59 -0700
commitfbb9d619939528a2cc3428c58b03865f522f9504 (patch)
tree9f51eb51ce9f6e07f169a754132cdc0cd5b083c5 /app
parent25b30944cb5a07fdc6610f17bf05ce476029e6ec (diff)
display a count of all the events for each agent.
Diffstat (limited to 'app')
-rw-r--r--app/views/agents/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/agents/index.html.erb b/app/views/agents/index.html.erb
index 75adfdb..65ce07e 100644
--- a/app/views/agents/index.html.erb
+++ b/app/views/agents/index.html.erb
@@ -18,7 +18,7 @@
<tr>
<td><%= link_to agent.hostname, agent_path(agent) %></td>
<td><%= agent.created_at %></td>
- <td><%= link_to 'Events', agent_events_path(agent) %></td>
+ <td><%= link_to "Events (#{agent.events.count})", agent_events_path(agent) %></td>
<td><%= link_to 'Edit', edit_agent_path(agent) %></td>
<td><%= link_to 'Destroy', agent, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>