diff options
| author | mo khan <mo@mokhan.ca> | 2015-03-03 22:11:59 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-03-03 22:11:59 -0700 |
| commit | fbb9d619939528a2cc3428c58b03865f522f9504 (patch) | |
| tree | 9f51eb51ce9f6e07f169a754132cdc0cd5b083c5 | |
| parent | 25b30944cb5a07fdc6610f17bf05ce476029e6ec (diff) | |
display a count of all the events for each agent.
| -rw-r--r-- | app/views/agents/index.html.erb | 2 |
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> |
