aboutsummaryrefslogtreecommitdiff
path: root/app/views/agents/_agent.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/agents/_agent.html.erb')
-rw-r--r--app/views/agents/_agent.html.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/agents/_agent.html.erb b/app/views/agents/_agent.html.erb
new file mode 100644
index 0000000..5a74df1
--- /dev/null
+++ b/app/views/agents/_agent.html.erb
@@ -0,0 +1,15 @@
+<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>
+ </head>
+ <section id="stats">
+ <h3>Statistiques</h3>
+ <ul>
+ <li><%= link_to pluralize(agent.resources.count, 'Resource'), agent_resources_url(agent) %></li>
+ <li><%= pluralize(agent.taxonomies.count, 'Taxonomy') %> with
+ <%= pluralize(agent.categories.count, 'Category') %> and
+ <%= pluralize(agent.sections.count, 'Section') %>.</li>
+ </ul>
+ </section>
+</article>