aboutsummaryrefslogtreecommitdiff
path: root/app/views/agents/_agent.html.erb
blob: 5a74df1a24a94a5d1bb806e10b096404a5fd4878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>