adds specs for stats

This commit is contained in:
rgarcia
2016-06-16 17:59:56 +02:00
parent 0abc9c8376
commit f9a2f5d5dc
6 changed files with 89 additions and 10 deletions

View File

@@ -10,14 +10,18 @@
<div class="small-12 medium-3 column">
<p class="featured">
<%= t("admin.stats.proposal_notifications.total") %><br>
<span class="number"><%= @proposal_notifications.count %></span>
<span class="number" id="proposal_notifications_count">
<%= @proposal_notifications.count %>
</span>
</p>
</div>
<div class="small-12 medium-3 column">
<p class="featured">
<%= t("admin.stats.proposal_notifications.proposals_with_notifications") %><br>
<span class="number"><%= @proposals_with_notifications.count %></span>
<span class="number" id="proposals_with_notifications_count">
<%= @proposals_with_notifications.count %>
</span>
</p>
</div>
</div>
@@ -28,8 +32,10 @@
<div id="proposal_notifications">
<% @proposal_notifications.each do |notification| %>
<p><%= link_to notification.proposal.title, proposal_path(notification.proposal) %></p>
<p><%= notification.title %></p>
<p><%= notification.body %></p>
<div class="proposal_notification">
<p><%= link_to notification.proposal.title, proposal_path(notification.proposal) %></p>
<p><%= notification.title %></p>
<p><%= notification.body %></p>
</div>
<% end %>
</div>