aboutsummaryrefslogtreecommitdiff
path: root/app/views/welcome/dashboard.html.erb
blob: 88804343e5bbf5cb0bdc338de1783c299d8e9a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h1>Welcome <%= h current_user.name %>!</h1>

<p>Current Agent: <%= current_agent&.name %></p>

<section id="global_stats">
    <h2>Global Count</h2>
    <p><%#= @stats[:counts].map { |k,v| pluralize(k.to_s.singularize, v) }.to_sentence %></p>
    <p><%= p @stats[:count] %>
</section>

<section id="current_agent_stats">
    <h2>Current Agent: <%= current_agent %></h2>
    <p><%#= @stats[:current_agent][:counts].map { |k,v| pluralize(k.to_s.singularize, v) }.to_sentence %></p>
    <%= render partial: current_agent %>
</section>